public class NamespaceDeclarationStack extends Object
| Constructor and Description |
|---|
NamespaceDeclarationStack() |
NamespaceDeclarationStack(XMLReader xmlReader) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getActiveNamespaces() |
String |
getPrefix(String uri) |
void |
popNamespaces()
Pop element out of the namespace declaration stack and notifying
ContentHandler if required. |
XMLReader |
popReader()
Pop the current XMLReader off the XMLReader stack.
|
Attributes |
pushNamespaces(String qName,
String namespace,
Attributes attributes)
Pushing a new element to the stack.
|
void |
pushReader(XMLReader reader)
Push a new XMLReader instance onto the XMLReader Stack.
|
public NamespaceDeclarationStack()
public NamespaceDeclarationStack(XMLReader xmlReader)
public Attributes pushNamespaces(String qName, String namespace, Attributes attributes) throws SAXException
qName - Element QName.namespace - Element namespace.attributes - optional attributes or null, single element could declare multiple namespacesSAXException - if an error is encountered when attempting to push
the element to the stack.public void popNamespaces()
throws SAXException
ContentHandler if required.SAXException - if an error occurs when attempting to pop the
element out of the stack.public void pushReader(XMLReader reader)
reader - The reader instance.public XMLReader popReader()
Copyright © 2020. All rights reserved.