The values of node names and values vary according to the node type.
<?xml version="1.0" encoding="UTF-8"?>
<!--a comment--> <?pi a processing instruction?> <root xmlns="x:y" attr="ignored"> <section> A & B </section> <![CDATA[ < & > ]]> </root> |
#document
#comment pi root #text section #text #text #cdata-section #text |
Note. The attributes are not listed!