public class XPathNavigator extends Object
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getXJdfStream()
Return the xJdf document as input stream.
|
static XPathNavigator |
newInstance(InputStream xJdfStream)
Factory method for creating a new XPathNavigator object.
|
String |
readAttribute(String xPath)
Read attribute from XJdf Document using XPath.
|
void |
updateAttribute(String xPath,
String value)
Update attribute in XML Document.
|
public static XPathNavigator newInstance(InputStream xJdfStream) throws Exception
xJdfStream - XJdf document as input stream.IOException - Is being thrown in case an exception occurs.Exceptionpublic 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 getXJdfStream() throws Exception
ExceptionCopyright © 2012. All Rights Reserved.