Class NativeXmlNode
- java.lang.Object
-
- org.eolang.jeo.representation.xmir.NativeXmlNode
-
-
Constructor Summary
Constructors Constructor Description NativeXmlNode(String xml)
Constructor.NativeXmlNode(Node parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
attribute(String name)
Get attribute.XmlNode
child(String name)
Get child node.Stream<XmlNode>
children()
Get all child nodes.boolean
equals(Object obj)
int
hashCode()
String
text()
Retrieve node text content.String
toString()
void
validate()
Validate the node.List<String>
xpath(String xpath)
Find elements by xpath.
-
-
-
Method Detail
-
children
public Stream<XmlNode> children()
Description copied from interface:XmlNode
Get all child nodes.
-
attribute
public Optional<String> attribute(String name)
Description copied from interface:XmlNode
Get attribute.
-
-