type property

  1. @override
XPathType get type
override

The XDM type of this item.

Implementation

@override
XPathType get type => switch (node) {
  XmlElement() => xsElement,
  XmlAttribute() => xsAttribute,
  XmlText() => xsText,
  XmlComment() => xsComment,
  XmlProcessing() => xsProcessingInstruction,
  XmlNamespace() => xsNamespace,
  XmlDocument() || XmlDocumentFragment() => xsDocument,
  _ => xsNode,
};