Root node of the whole document.
structure:
{
type: 'Document',
children: [/* */],
}
ProcessingInstruction node (like <?xml-stylesheet type="text/css" href="./bootstore.css"?>
).
structure:
{
"type": "ProcessingInstruction",
"tag": "xml-stylesheet",
"data": "type=\"text/css\" href=\"./bootstore.css\""
}
Comment node (like <!-- some comments -->
).
structure:
{
"type": "Comment",
"data": " some comments "
}
Normal Element node (like <book category="COOKING"></book>
).
structure:
{
"type": "Element",
"tag": "bookstore",
"children": [/* */]
}
TextNode (like Everyday Italian
).
structure:
{
"type": "TextNode",
"text": "Everyday Italian"
}