@common:xmlns Annotation

The @common:xmlns annotation defines an XML namespace prefix for use elsewhere in the component class.

Note: In WebLogic Workshop 7.0, the XML namespace prefix was designated by the @jws:xmlns annotation. This annotation is still supported in JWS files for backward compatibility.

Syntax

@common:xmlns

prefix="namespacePrefix"

namespace="namespaceURI"

Attributes

prefix

Required. Specifies the XML namespace prefix being defined.

namespace

Required. Specifies the URI that the prefix represents.

Remarks

The following rules apply to this annotation's use:

The following XML namespace prefixes are implicitly defined in WebLogic Workshop:

The xm prefix is used in XML map annotations such as <xm:value> and <xm:multiple>.

If the xm or xsd prefixes are explicitly defined in a JWS or control file, the implicit definitions described above are overridden for that file.

To learn about XML namespaces and prefixes, see Introduction to XML.

Related Topics

Introduction to XML