# @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:

- Multiple @common:xmlns annotations may appear within a single Javadoc comment block.
- May appear on the main class declaration in a JWS file or the main interface declaration in a control file.

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

- xm, with namespace URI http://www.bea.com/2002/04/xmlmap/
- xsd, with namespace URI http://www.w3.org/2001/XMLSchema

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