Created
August 3, 2020 11:39
-
-
Save tomchiverton/102f51cf455ff7509989e07ec1f0f3ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
string='<methodResponse> | |
<params> | |
<param> | |
<value> | |
<array> | |
<data> | |
<value> | |
<string> | |
<![CDATA[thisdomain.net]]> | |
</string> | |
</value> | |
<value> | |
<string> | |
<![CDATA[barracuda.com]]> | |
</string> | |
</value> | |
</data> | |
</array> | |
</value> | |
</param> | |
</params> | |
</methodResponse>'; | |
x=xmlParse(string) | |
vals=xmlSearch(x,'/methodResponse/params/param/value/array/data/value/string') ; | |
writedump(vals) | |
array=vals.map(function(ele){return ele.xmltext}) | |
writedump(array) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment