The XmlNodeType of the XML fragment. This determines what the fragment can contain (see table below).
context
const SharedPtr<XmlParserContext>&
The XmlParserContext in which the XML fragment is to be parsed. This includes the XmlNameTable to use, encoding, namespace scope, current xml:lang, and xml:space scope.
Remarks
The following table lists valid values for fragType and how the reader parses each of the different node types.
XmlNodeType
Fragment May Contain
Element
Any valid element content (for example, any combination of elements, comments, processing instructions, cdata, text, and entity references).
Attribute
The value of an attribute (the part inside the quotes).
Document
The contents of an entire XML document; this enforces document level rules.
The XmlNodeType of the XML fragment. This also determines what the fragment string can contain (see table below).
context
const SharedPtr<XmlParserContext>&
The XmlParserContext in which the XML fragment is to be parsed. This includes the NameTable to use, encoding, namespace scope, current xml:lang, and xml:space scope.
Remarks
The following table lists valid values for fragType and how the reader parses each of the different node types.
XmlNodeType
Fragment May Contain
Element
Any valid element content (for example, any combination of elements, comments, processing instructions, cdata, text, and entity references).
Attribute
The value of an attribute (the part inside the quotes).
Document
The contents of an entire XML document; this enforces document level rules.