Beispiel
<book id="7"><title>North</title><tag>a</tag><tag>b</tag></book> becomes an object with @attributes.id, title and tag as an array.
Hinweise und Grenzen
Attributes are grouped under @attributes. Text-only elements become strings; elements containing both attributes or children store their text under #text. Repeated child names become arrays.