Declares a namespace prefix. This is only necessary when prefixes are used in element content and attribute values, as in XSLT and the W3C XML Schema Language. Do not use this method to declare prefixes for element and attribute names.
You can supply an empty string for the prefix to declare a default namespace, provided the element itself has a prefix.
If you do redeclare a prefix that is already used by an element or attribute name, the additional namespace is added if and only if the URI is the same. Conflicting namespace declarations will throw an exception.
@param prefix the prefix to declare @param uri the absolute URI reference to map the prefix to @throws MalformedURIException ifURI
is not an RFC 3986 URI reference
@throws IllegalNameException if prefix
is not a legal XML non-colonized name or the empty string
@throws NamespaceConflictException if the mapping conflicts with an existing element, attribute, or additional namespace declaration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|