The Attribute nodes are not included as children in the DOM hierarchy.
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="x:y" attr="ignored"> <section> A & B </section> </root> |
#document <<null>>
CHILDREN: root <<null>> ATTRIBUTES: xmlns <<x:y>> attr <<ignored>> CHILDREN: #text <<>> section <<null>> CHILDREN: #text <<A & B>> #text <<>> |
Note. The attributes are not listed!