xml='' + '
' + ' John Smith' + ' 123 George St.' + ' Mountain View' + ' CA' + ' 94041' + '
' + '
'; invoice = JSOM(xml); alert(invoice.$number); alert(invoice.address.name);