ElementNode
data class ElementNode(val name: String, val namespace: String = "", val lang: String = "", val attributes: AttributeMap = emptyMap(), val children: List<Node> = listOf()) : Node
Represents a node with children in the XML tree
Functions
Link copied to clipboard
Recursively collect all descendent ElementNode with the given name and namespace into a list
Link copied to clipboard
Recursively collect and concatenate all descendent TextNode in depth-first order
Link copied to clipboard
Return a list of ElementNode children with the given name and namespace
Link copied to clipboard
Return a list of all ElementNode children
Link copied to clipboard
Return the value of an attribute picked in the same namespace as this ElementNode, fallback to no namespace and at last to null.
Link copied to clipboard
Return the first ElementNode child with the given name and namespace, or null if there is none