Worked like a charm thanks
Much appreciated
Kind Regards
Claude Raiola
SAMARIS Software
Call 1300 255 990
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Charlie Arehart
Sent: Sunday, 16 June 2013 12:49 AM
To: cfaussie@googlegroups.com
Subject: RE: SPAM-HIGH: [cfaussie] Getting CF to read XML data
Hey Claude, while the xmlsearch could and should work, I'd propose that
there are other ways to access XML data which may help, especially
array/struct notation and/or functions. Since you don't mention them, I'd
like to propose you consider those.
For instance, how about:
cfset AddressNodes =
MyXMLDoc.Response.ResourceSets.ResourceSet.Resources.Location.Address
cfdump var=#AddressNodes#
If that doesn't work, just keep removing elements from the right until the
works, and sort out from the dump what you need to use.
If that's not enough info, I'll note that there are more resources to help
with processing XML in CFML, not least of which is the Developer's Guide
(which many miss, if they know only of the CFML Reference), as well as a
great PDF on XML processing in CF which Nate Weiss did over 10 years ago,
but which still mostly applies and in my mind is the best first place to
start.
I did a blog entry a couple of years ago pointing to these resources:
http://www.carehart.org/blog/client/index.cfm/2011/5/10/where_to_learn_CFMLs
_XML_capabilities
Let us know if any of the above helps.
/charlie
From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of rai...@ozemail.com.au
Sent: Saturday, June 15, 2013 1:47 AM
To: cfaussie@googlegroups.com
Subject: RE: SPAM-HIGH: [cfaussie] Getting CF to read XML data
Hi Cassie and Kai,
Yes bloody typo's
so I have change the code so reflect the structure however still there is no
output
cfset MyXMLDoc = xmlParse(cfhttp.FileContent)
cfset AddressNodes =
xmlSearch(MyXMLDoc,'/Response/ResourceSets/ResourceSet/Resources/Location/Ad
dress')
cfdump var=#AddressNodes#
Kind Regards
Claude Raiola
--
You received this message because you are subscribed to the Google Groups
cfaussie group.
To unsubscribe from this group and stop receiving emails from it, send an
email to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
cfaussie group.
To unsubscribe from this group and stop receiving emails from it, send an email
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.