The markupObject is being generated by the xml2js module. Given an XML that looks like this:
The generated markupObject will look like this:
{
"TimelineMessage": {
"#name": "TimelineMessage",
"children": [
{
"attributes": {
"style": "icon",
"selectable": "true"
},
"#name": "List",
"children": [
{
"attributes": {
"id": "SAVE",
"iconUrl": "bank.ico",
"title": "Savings Account"
},
"#name": "Item"
},
{
"attributes": {
"id": "CREDIT",
"iconUrl": "card.ico",
"title": "Credit Account"
},
"#name": "Item"
}
],
},
{
"content": "My 1st text message",
"#name": "TextMsg"
},
{
"content": "My 2nd text message",
"#name": "TextMsg"
}
],
}