Overview
Convert an object to an XML string.
Convert an object to an XML string.
This function converts an XML string to an object. By converting XML to an object, you will be able to leverage many of the built in functions such as those in the list and object categories to process and utilize values from the XML string throughout the rest of your Flow.
"artist": [ { "_": "Surfer Blood" } ]
'Surfer Blood '
in the input XML would become 'Surfer Blood'
in the output object.<ARTIST>'
in the input XML would become ‘artist’ in the output object.Example XML Input
<?xml version="1.0"?>
<catalog>
<release id="JNR165.8">
<artist>Surfer Blood</artist>
<title>1000 Palms</title>
<genre>Rock</genre>
<label>Joyful Noise Recordings</label>
<release_date>2015-05-12</release_date>
</release>
<release id="OLE 984-7">
<artist>The Men</artist>
<title>Singles Going Home Alone #3</title>
<genre>Rock</genre>
<label>Matador Records</label>
<release_date>2012-03-01</release_date>
</release>
<release id="SC007">
<artist>Michael Nau</artist>
<title>Love Survive</title>
<genre>Rock</genre>
<label>Singles Club</label>
<release_date>2015-09-01</release_date>
</release>
<release id="DEG001">
<artist>Coastal</artist>
<title>Winter</title>
<genre>Rock</genre>
<label>Dream by Degrees</label>
<release_date>2002-01-01</release_date>
</release>
</catalog>
Example Object Output (based on default selections)
{
"release": [
{
"$": { "id": "JNR165.8" },
"artist": [ "Surfer Blood" ],
"title": [ "1000 Palms" ],
"genre": [ "Rock" ],
"label": [ "Joyful Noise Recordings" ],
"release_date": [ "2015-05-12" ]
},
{
"$": { "id": "OLE 984-7" },
"artist": [ "The Men" ],
"title": [ "Singles Going Home Alone #3" ],
"genre": [ "Rock" ],
"label": [ "Matador Records" ],
"release_date": [ "2012-03-01" ]
},
{
"$": { "id": "SC007" },
"artist": [ "Michael Nau" ],
"title": [ "Love Survive" ],
"genre": [ "Rock" ],
"label": [ "Singles Club" ],
"release_date": [ "2015-09-01" ]
},
{
"$": { "id": "DEG001" },
"artist": [ "Coastal" ],
"title": [ "Winter" ],
"genre": [ "Rock" ],
"label": [ "Rock" ],
"release_date": [ "2002-01-01" ]
}
]
}