After loading the XML using xml2dom, you need to retrieve the nodes you
wish to loop over from the XML using the selectNodes methods.
For instance, If I wanted to loop over all the Author nodes in the XML
file, oDOM is the output attribute from the soXML call, I would use this
statement to retrieve the desired Author nodes:
<cfset cAuthors = oDOM.selectNodes("//Author")>
I would then use CFLOOP and loop over the collection, "cAuthors". That
should do it.
Also, do not worry about John's statement saying that it took over a
minute to parse the file using soXML vs. calling msXML directly. He is
a bit confused here, as he was most likely using XML2CF which converts
the XML to a CF structure. XML2DOM should be used, and there will be
_no_ performance hit using that action of soXML.
support for soXML can be found at http://forums.siteobjects.com
hth, if it doesn't we need to see your code.
|U|> -----Original Message-----
|U|> From: Fred Anderson [mailto:[EMAIL PROTECTED]]
|U|> Sent: Sunday, December 16, 2001 1:02 AM
|U|> To: CF-Talk
|U|> Subject: SOXML xmlToDom
|U|>
|U|>
|U|> While using CF_SOXML xmltoDOM to parse some XML I am
|U|> having the following issue. When trying to retrieve a node
|U|> it is giving back all the nodes at that level through the
|U|> site; here is an example.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists