public abstract class AbstractXPathNavigator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Document |
xmlDocument |
protected XPath |
xPath |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXPathNavigator(InputStream xmlStream)
Private default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getXmlStream()
Return the XML Document as input stream.
|
String |
readAttribute(String xPath)
Read attribute from XML Document using XPath.
|
void |
updateAttribute(String xPath,
String value)
Update attribute in XML Document.
|
protected AbstractXPathNavigator(InputStream xmlStream) throws Exception
IOExceptionExceptionpublic String readAttribute(String xPath) throws XPathExpressionException
xPath - XPath expression of attribute to read.XPathExpressionException - Is being thrown in case an exception occurs.public void updateAttribute(String xPath, String value) throws Exception
xPath - XPath expression of attribute to read.Exception - Is being thrown in case an exception occurs.public InputStream getXmlStream() throws Exception
ExceptionCopyright © 2012. All Rights Reserved.