Parse XML into a JSON object tree (attributes under _attrs, text under _text; repeated elements become arrays).