public interface Xml
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
A string representation of this
Xml. |
Optional<Xml> |
child(String xpath)
Returns the first
Xml node selected with xpath. |
Collection<Xml> |
children(String xpath)
Returns all descendant
Xml nodes selected with xpath. |
Node |
node()
|
Optional<String> |
textOf(String xpath)
Returns the text content of the element selected with
xpath if it exists,
otherwise an empty optional. |
Optional<String> textOf(String xpath) throws org.llorllale.youtrack.api.UncheckedException
xpath if it exists,
otherwise an empty optional.xpath - the xpath expressionxpath on the xmlUncheckedException - wrapping any XPathExpressionException thrown by java's xpathOptional<Xml> child(String xpath) throws org.llorllale.youtrack.api.UncheckedException
Xml node selected with xpath.xpath - the xpath expression that identifies the child node desiredXml node selected with xpathUncheckedException - wrapping any XPathExpressionException thrown by javaCollection<Xml> children(String xpath) throws org.llorllale.youtrack.api.UncheckedException
Xml nodes selected with xpath.xpath - the xpath expression that identifies the child nodes desiredXml nodes selected with xpathUncheckedException - wrapping any XPathExpressionException thrown by javaNode node()
Copyright © 2017–2018 George Aristy. All rights reserved.