Deprecated. XML Maps are deprecated as of the WebLogic Platform 8.1 release. For new code, use XQuery maps. For more information, see Introduction to XQuery Maps.

Namespaces in XML Maps

In XML, a namespace defines the scope in which tag names should be unique. For introductory information on namespaces, see Introduction to XML.

You can declare and use your own namespaces within an XML map. Namespaces provide a way for you to ensure that element names are unique within a given XML document. For example, note that in the following example the use of namespaces (and their accompanying prefixes) allows two tags named "value"—<biblio:value> and <xm:value—to coexist in the same document. (The namespace specified by the xm prefix is implicitly declared in all files where maps may be used, but it may be overridden by another prefix you define.)

/* 
 * @common:operation 
 * @jws:parameter-xml xml-map:: 
 *    <biblio:book xmlns:biblio="http://myBookNamespace.org/">
 *        <biblio:title>{productName}</biblio:title> 
 *        <biblio:isbn>{productID}</biblio:isbn> 
 *        <biblio:value>{productPrice}</biblio:value> 
 *    </biblio:book> 
 * :: 
 */ 

Related Topics

Matching XML Shapes

Introduction to XML

Filtering By Namespace