Skip to main content
Inspiring
June 13, 2006
Answered

Ned help parsing XML

I have an XML result that is coming back with aliases. I am parsing this data and putting each element into a database. A sample of the XML Structure is attached. I am using the ARRAYLEN feature to count the child elements but that generates an error. How can I get an accurate count of the <ALIAS> element in this XML so I now how many times to loop through that set of elements?

Thanks
This topic is closed to new replies. Start a new post to keep the conversation going.
Rick5Correct answer
Inspiring
June 14, 2006
That worked.

Thanks,

2 replies

Inspiring
June 14, 2006
if you use cfhttp to read the xml into a variable and then CFDUMP it, you will be able to see all the variables that CF uses in XML parsing, including the ones in your file and the ones you need to access the nested variables.

This is code from an app I use to run through a list of games played from Halo2 using Bungie's XML feed to CF.

This will likely give you a good starting point.



Translate
Rick5AuthorCorrect answer
Inspiring
June 14, 2006
That worked.

Thanks,
Translate