public interface IXmlNamespaceManager
IXmlWriter instances.| Modifier and Type | Method and Description |
|---|---|
void |
addTemporaryMapping(String nsUri,
String prefix)
Register a temporary mapping without writing an explicit XMLNS declaration.
|
Map<String,String> |
getGlobalNamespaces()
Return a list of all namespace declarations that should be declared at the document's root element.
|
String |
getNamespaceOfPrefix(String prefix)
Gets the registered XML namespace URI of
prefix. |
String |
getOrCreateUniqueMapping(String ns)
Returns a unique namespace prefix, or creates and registeres one.
|
String |
getPrefixOfNamespace(String ns)
Gets the registered XML prefix of
ns. |
void |
popScope()
Pops a current declaration scope.
|
void |
pushScope()
Pushes a current declaration scope.
|
void |
registerLocalMapping(String nsUri,
String prefix)
Register a local namespace/prefix mapping.
|
void addTemporaryMapping(String nsUri, String prefix)
nsUri - The XML namespace URIprefix - The prefix for the URIMap<String,String> getGlobalNamespaces()
String getNamespaceOfPrefix(String prefix)
prefix.
If the prefix is redeclared, the nearest enclosing declaration (at the time of this method call) is used.
prefix - The prefix for which a namespace URI is searched.prefix.String getOrCreateUniqueMapping(String ns)
ns - The namespace URI for which a prefix is searched.ns.String getPrefixOfNamespace(String ns)
ns.ns - The namespace URI for which a prefix is searched.ns.void popScope()
void pushScope()