Fan

 

const final enum

xml::XNodeType

sys::Obj
  sys::Enum
    xml::XNodeType

@simple

Enumerates the type of XNode and current node of XParser.

Slots

docSource

static XNodeType doc := XNodeType.make(0, "doc")

Document node type by XDoc.nodeType

elemSource

static XNodeType elem := XNodeType.make(1, "elem")

Element node type returned by XElem.nodeType

elemEndSource

static XNodeType elemEnd := XNodeType.make(5, "elemEnd")

End of element used by XParser when pull parsing.

elemStartSource

static XNodeType elemStart := XNodeType.make(4, "elemStart")

Start of element used by XParser when pull parsing.

fromStrSource

static XNodeType? fromStr(Str name, Bool checked := true)

Return the XNodeType instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

piSource

static XNodeType pi := XNodeType.make(3, "pi")

Processing instruction node type returned by XPi.nodeType

textSource

static XNodeType text := XNodeType.make(2, "text")

Text node type returned by XText.nodeType

valuesSource

static XNodeType[] values := ...

List of XNodeType values indexed by ordinal