abstract class xml::XNode

sys::Obj
  xml::XNode

@Js

Source

XNode is the base class for XElem and XText.

doc

XDoc? doc()

Source

Get the root document node or null if this node is not mounted under a XDoc instance.

nodeType

abstract XNodeType nodeType()

Source

Return the node type enum. Note that XElem always returns elem, but that during pull parsing XParser will return elemStart and elemEnd.

parent

XNode? parent { internal set }

Source

Get the parent of this node or null if unmounted.

write

abstract Void write(OutStream out)

Source

Write this node to the output stream.

writeToStr

Str writeToStr()

Source

Conveniece to write to an in-memory string.