Greetings.
 
Currently I'm using msxml to load/parse xml documents. I load the document and then loop through it, setting variables like so:
 
<cfset article-info = loopItem.SelectSingleNode(//title)>
 
and the like.
 
What I'd like to do, though, is to dynamically create these variables and their content rather than coding them manually.
 
so a loop would look something like this:
 
For every node in the document
  set <currentNodeName> = currentNodeContent
 
So if the document had 30 nodes (including childnodes), I'd end up with 30 variables named after the document's elements, and those variables would contain that element's contents
 
any ideas?

Reply via email to