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.XmlNodechild(String name)Get child node.Stream<XmlNode>children()Get all child nodes.booleanequals(Object obj)inthashCode()Stringtext()Retrieve node text content.StringtoString()voidvalidate()Validate the node.List<String>xpath(String xpath)Find elements by xpath.
-
-
-
Method Detail
-
children
public Stream<XmlNode> children()
Description copied from interface:XmlNodeGet all child nodes.
-
attribute
public Optional<String> attribute(String name)
Description copied from interface:XmlNodeGet attribute.
-
-