- All Implemented Interfaces:
XmlNode
public final class JcabiXmlNode
extends Object
implements XmlNode
Jcabi XML node.
- Since:
- 0.8
-
Method Summary
Retrieve node text content.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
children
Description copied from interface: XmlNode
Get all child nodes.
- Specified by:
children in interface XmlNode
- Returns:
- Child nodes.
-
text
Description copied from interface: XmlNode
Retrieve node text content.
- Specified by:
text in interface XmlNode
- Returns:
- Text content.
-
attribute
Description copied from interface: XmlNode
Get attribute.
- Specified by:
attribute in interface XmlNode
- Parameters:
name - Attribute name.
- Returns:
- Attribute.
-
child
Description copied from interface: XmlNode
Get child node.
- Specified by:
child in interface XmlNode
- Parameters:
name - Child node name.
- Returns:
- Child node.
-
xpath
Description copied from interface: XmlNode
Find elements by xpath.
- Specified by:
xpath in interface XmlNode
- Parameters:
xpath - XPath.
- Returns:
- List of elements.
-
validate
public void validate()
Description copied from interface: XmlNode
Validate the node.
- Specified by:
validate in interface XmlNode