XNode is the base class for XElem
and XText
.
See docLib::Xml
Slots
- docSource
-
XDoc? doc()
Get the root document node or null if this node is not mounted under a XDoc instance.
- nodeTypeSource
-
abstract XNodeType nodeType()
Return the node type enum. Note that XElem always returns
elem
, but that during pull parsing XParser will returnelemStart
andelemEnd
. - parentSource
-
XNode? parent { internal set }
Get the parent of this node or null if unmounted.
- writeSource
-
abstract Void write(OutStream out)
Write this node to the output stream.
- writeToStrSource
-
Str writeToStr()
Conveniece to write to an in-memory string.