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
XMLException
public XMLReader(String type, URL url) throws XMLException
XMLException
public String getDefaultNamespaceURI()
public void addNamespaceMapping(String elementName, String uri)
public Element getElement(String xpathExpr) throws XMLException
XMLException
public boolean hasElement(String xpathExpr) throws XMLException
XMLException
public void removeNamespaces()
public void removeNamespaces(Node elem)
public String getElementText(Node context, String xpathExpr) throws XMLException
XMLException
public String getElementText(String xpathExpr) throws XMLException
XMLException
public List<Node> getElementList(String xpathExpr) throws XMLException
XMLException
public List<String> getElementListText(String xpathExpr) throws XMLException
XMLException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.