Link to home
Start Free TrialLog in
Avatar of areola
areola

asked on

Parse and output XML

Hello all,

I'm trying to build an address look up app from xml files provided from postcodeanywhere.co.uk. I know I need to execute a lookup query with cfhttp and then parse it  but I need some help on how to output the address options... I keep on running into a multitude of errors. The format of the xml files can be viewed here: http://www.postcodeanywhere.co.uk/downloads/developer/samples/xml_examples.doc

Can anyone provide me with some pointers for the first two xml docs detailed?

Cheers, P
Avatar of INSDivision6
INSDivision6

Not clear what is your problem/question.
ASKER CERTIFIED SOLUTION
Avatar of Tacobell777
Tacobell777

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of areola

ASKER

First off sorry to INSDivision6 for not replying to your request for more information sooner, I was away on a long weekend and didn't have a chance to reply.

Secondly big thanks to Tacobell777 for understanding what I was whittering on about. Yes it makes perfect sense to me, it was how to reference the "xmlRoot.Data.Item" bit that was really throwing me.

Also to anyone that finds this post later I inserted the cfhttp request with <cfhttp url="#urlAddress#" method="GET" timeout="15"> I then changed the first instance of "variables.myXMLString" to "cfhttp.filecontent" and later referneces to "objXML"

Many thanks Tacobell777, I'm beginning to get my head round XML with Coldfusion, one big "A" to you!
your welcome