public interface DOMDocument
Validator
.Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String xPath,
String attrName,
String attrValue)
Adds an attribute to a node addressed by the given XPath.
|
URI |
getDocumentURI() |
Node |
getNode(String xPath)
Returns the node addressed by the given XPath, if more then
one an exception will be raised.
|
List<Node> |
getNodes(String xPath)
Returns the list of nodes addressed by the given XPath.
|
List<Node> |
getNodesWithAttribute(String attrName)
Returns all the nodes declaring an attribute with the specified name.
|
Document |
getOriginalDocument()
Returns the original document.
|
URI getDocumentURI()
Document getOriginalDocument()
List<Node> getNodes(String xPath)
xPath
- a valid XPathNode getNode(String xPath)
xPath
- a valid XPath.null
if nothing found.void addAttribute(String xPath, String attrName, String attrValue)
xPath
- the XPath pointing the node.attrName
- the name of the attribute.attrValue
- the value of the attribute.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.