public class XmlPath extends Object
As XmlPatcher parses through XML, the current location is accessible from XmlPatcher.getPath().
Each XmlPath is immutable, and every element in XML gets an unique instance. This allows visitors
to hold on to the reference and match up start/end tags more easily.
| Modifier and Type | Method and Description |
|---|---|
int |
getDepth()
Gets depth of this element.
|
String |
getLocalNames()
Takes the current element and return XPath-like path to it by concatanating all the local names.
|
XmlPath |
getParent() |
javax.xml.stream.events.StartElement |
getTag() |
String |
toString() |
public XmlPath getParent()
public javax.xml.stream.events.StartElement getTag()
public String getLocalNames()
public int getDepth()
Copyright © 2013. All Rights Reserved.