type

XNodeType

src @Js
@Serializable { simple=true }
enum class XNodeType : Enum

Enumerates the type of XNode and current node of XParser.

enum

doc

Document node type by XDoc.nodeType

elem

Element node type returned by XElem.nodeType

text

Text node type returned by XText.nodeType

pi

Processing instruction node type returned by XPi.nodeType

elemStart

Start of element used by XParser when pull parsing.

elemEnd

End of element used by XParser when pull parsing.

constructors

fromStr

Return the XNodeType instance for the specified name.

fields

vals

List of XNodeType values indexed by ordinal

Slot Details

doc

src const static XNodeType doc := ...

Document node type by XDoc.nodeType

elem

src const static XNodeType elem := ...

Element node type returned by XElem.nodeType

elemEnd

src const static XNodeType elemEnd := ...

End of element used by XParser when pull parsing.

elemStart

src const static XNodeType elemStart := ...

Start of element used by XParser when pull parsing.

fromStr

src static new 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.

pi

src const static XNodeType pi := ...

Processing instruction node type returned by XPi.nodeType

text

src const static XNodeType text := ...

Text node type returned by XText.nodeType

vals

src const static XNodeType[] vals := ...

List of XNodeType values indexed by ordinal