Hey Jon, worked wonderfully! Thanks a lot! andres
-----Original Message----- From: jon hall [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 7:16 PM To: CF-Talk Subject: Re: XML parsing using CF5 Seeing as I'm sitting here waiting for a client to get done having dinner so that we can work even later (blah...) I tested this and it worked for me. I haven't used the getElementsByTagName method before, and generally use selectNodes and XSL to get my nodelist. Theoretically getElementsByTagName should work though, I just wouldn't know why it's not working for you. Also I am using MSXML4, which you should really go grab and stick on your server if it's not already there. It's the only version Microsoft I would recommend be used in production. It's a quick painless install. <cfsavecontent variable="xmlText"> <AddressValidateResponse> <Address ID="0"> <Address2>6406 IVYLN</Address2> <City>GREENBELT</City> <State>MD</State> <Zip5>20770</Zip5> <Zip4>1440</Zip4> </Address> </AddressValidateResponse> </cfsavecontent> <cfset objXMLDOM = CreateObject("COM", "MSXML2.DOMDocument.4.0")> <cfset objXMLDOM.async = false> <cfset XMLloadSuccess = objXMLDOM.loadXML(xmlText)> <cfset nodes = objXMLDOM.selectNodes("/AddressValidateResponse/Address")> <cfloop collection="#nodes#" item="i"> <cfset address = i.SelectSingleNode("Address2")> <cfset city = i.SelectSingleNode("City")> <cfset state= i.SelectSingleNode("State")> <cfset zip5 = i.SelectSingleNode("Zip5")> <cfset zip4 = i.SelectSingleNode("Zip4")> <cfoutput> #address.text#<br> #city.text#<br> #state.text#<br> #zip5.text#<br> #zip4.text#<br> </cfoutput> </cfloop> -- jon mailto:[EMAIL PROTECTED] Thursday, February 20, 2003, 6:46:39 PM, you wrote: A> I read the very same article and tried using Address.text var, but then i got the following error: A> ---0---0---0---0---0---0---0---0---0---0---0---0 A> Error Diagnostic Information A> An error occurred while evaluating the expression: A> #address.text# A> Error near line 48, column 13. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

