| Constructor and Description | 
|---|
| XMLReader(String type,
         Path file) | 
| XMLReader(String type,
         URL url) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addNamespaceMapping(String elementName,
                   String uri) | 
| String | getDefaultNamespaceURI() | 
| Element | getElement(String xpathExpr) | 
| List<Node> | getElementList(String xpathExpr) | 
| List<String> | getElementListText(String xpathExpr) | 
| String | getElementText(Node context,
              String xpathExpr) | 
| String | getElementText(String xpathExpr) | 
| boolean | hasElement(String xpathExpr) | 
| void | removeNamespaces()Remove namespaces from entire document. | 
| void | removeNamespaces(Node elem)Remove namespaces from element recursively. | 
public XMLReader(String type, Path file) throws XMLException
XMLExceptionpublic XMLReader(String type, URL url) throws XMLException
XMLExceptionpublic String getDefaultNamespaceURI()
public void addNamespaceMapping(String elementName, String uri)
public Element getElement(String xpathExpr) throws XMLException
XMLExceptionpublic boolean hasElement(String xpathExpr) throws XMLException
XMLExceptionpublic void removeNamespaces()
public void removeNamespaces(Node elem)
public String getElementText(Node context, String xpathExpr) throws XMLException
XMLExceptionpublic String getElementText(String xpathExpr) throws XMLException
XMLExceptionpublic List<Node> getElementList(String xpathExpr) throws XMLException
XMLExceptionpublic List<String> getElementListText(String xpathExpr) throws XMLException
XMLExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.