Convention: repeated elements become arrays, and @attr / #text keys map to XML attributes / text content.
@attr
#text