Example for
$ go run main.go < rets.xml | jq .
{
"XMLName": {
"Space": "",
"Local": "RETS"
},
"Text": "\n\n",
"ReplyCode": "0",
"ReplyText": "Operation successful.",
"METADATATABLE": {
"Text": "\n\n\n\n\n\n\n\n\n",
"Resource": "ActiveAgent",
"Class": "MEMB",
"Version": "01.72.10236",
"Date": "2011-03-03T00:29:23",
"COLUMNS": {
"Text": "\tMetadataEntryID\tSystemName\tStandardName\tLongName\tDBName\tShortName\tMaximumLength\tDataType\tPrecision\tSearchable\tInterpretation\tAlignment\tUseSeparator\tEditMaskID\tLookupName\tMaxSelect\tUnits\tIndex\tMinimum\tMaximum\tDefault\tRequired\tSearchHelpID\tUnique\tModTimeStamp\tForeignKeyName\tForeignField\tInKeyindex\t"
},
"DATA": [
{
"Text": "\t7\tCity\t\tCity\tCity\tCity\t11\tCharacter\t0\t1\t\tLeft\t0\t\t\t0\t\t0\t0\t0\t0\t0\tCity\t0\t0\t1\tMemberNumber\t0\t"
},
{
"Text": "\t9\tContactAddlPhoneType1\t\tContact Additional Phone Type 1\tAddlPhTyp1\tContact Addl Ph Type 1\t1\tCharacter\t0\t1\tLookup\tLeft\t0\t\tContactAddlPhoneType\t0\t\t0\t0\t0\t0\t0\tContactAddlPhoneType\t0\t0\t1\tMemberNumber\t0\t"
},
{
"Text": "\t11\tContactAddlPhoneType2\t\tContact Additional Phone Type 2\tAddlPhTyp2\tContact Addl Ph Type 2\t1\tCharacter\t0\t1\tLookup\tLeft\t0\t\tContactAddlPhoneType\t0\t\t0\t0\t0\t0\t0\tContactAddlPhoneType\t0\t0\t1\tMemberNumber\t0\t"
},
{
"Text": "\t13\tContactAddlPhoneType3\t\tContact Additional Phone Type 3\tAddlPhTyp3\tContact Addl Ph Type 3\t1\tCharacter\t0\t1\tLookup\tLeft\t0\t\tContactAddlPhoneType\t0\t\t0\t0\t0\t0\t0\tContactAddlPhoneType\t0\t0\t1\tMemberNumber\t0\t"
},
{
"Text": "\t15\tContactPhoneAreaCode1\t\tContact Phone Area Code 1\tContPhAC1\tContact Phone AC 1\t3\tCharacter\t0\t1\t\tLeft\t0\t\t\t0\t\t0\t0\t0\t0\t0\tContactPhoneAreaCode\t0\t0\t1\tMemberNumber\t0\t"
},
{
"Text": "\t17\tContactPhoneAreaCode2\t\tContact Phone Area Code 2\tContPhAC2\tContact Phone AC 2\t3\tCharacter\t0\t1\t\tLeft\t0\t\t\t0\t\t0\t0\t0\t0\t0\tContactPhoneAreaCode\t0\t0\t1\tMemberNumber\t0\t"
},
{
"Text": "\t19\tContactPhoneAreaCode3\t\tContact Phone Area Code 3\tContPhAC3\tContact Phone AC 3\t3\tCharacter\t0\t1\t\tLeft\t0\t\t\t0\t\t0\t0\t0\t0\t0\tContactPhoneAreaCode\t0\t0\t1\tMemberNumber\t0\t"
}
]
}
}