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

SAMARIS Software

Call 1300 255 990

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Cassie Woolley
Sent: Saturday, 15 June 2013 2:49 PM
To: [email protected]
Subject: RE: SPAM-HIGH: [cfaussie] Getting CF to read XML data

 

At first glance, you have ResourceSets twice.

 

From: [email protected] [mailto:[email protected]] On Behalf
Of [email protected]
Sent: Saturday, 15 June 2013 2:41 PM
To: [email protected]
Subject: SPAM-HIGH: [cfaussie] Getting CF to read XML data

 


xml document [short version]


Response


XmlText

        

XmlAttributes


struct


xmlns

http://schemas.microsoft.com/search/local/ws/rest/v1


xmlns:xsd

http://www.w3.org/2001/XMLSchema


xmlns:xsi

http://www.w3.org/2001/XMLSchema-instance


Copyright


XmlText

Copyright C 2013 Microsoft and its suppliers. All rights reserved. This API
cannot be accessed and the content and any results may not be used,
reproduced or transmitted in any manner without express written permission
from Microsoft Corporation.


BrandLogoUri


XmlText

http://dev.virtualearth.net/Branding/logo_powered_by.png


StatusCode


XmlText

200


StatusDescription


XmlText

OK


AuthenticationResultCode


XmlText

ValidCredentials


TraceId


XmlText

8ef773a25de8461586e09dc455336674|SN1M000099|02.00.150.1300|SN1MSNVM001335,
SN1MSNVM001334


ResourceSets


XmlText

        

ResourceSet


XmlText

        

EstimatedTotal


XmlText

1


Resources


XmlText

        

Location


XmlText

        

Name


XmlText

23 Pixley St, Kangaroo Point, QLD 4169


Point


XmlText

        

Latitude


XmlText

-27.471384555101395


Longitude


XmlText

153.03484484553337


BoundingBox


XmlText

        

SouthLatitude


XmlText

-27.475247272672071


WestLongitude


XmlText

153.02904021337523


NorthLatitude


XmlText

-27.467521837530718


EastLongitude


XmlText

153.04064947769152


EntityType


XmlText

Address


Address


XmlText

        

AddressLine


XmlText

23 Pixley St


AdminDistrict


XmlText

QLD


CountryRegion


XmlText

Australia


FormattedAddress


XmlText

23 Pixley St, Kangaroo Point, QLD 4169


Locality


XmlText

Kangaroo Point


PostalCode


XmlText

4169


Confidence


XmlText

Medium


MatchCode


XmlText

Good


GeocodePoint


XmlText

        

Latitude


XmlText

-27.471384555101395


Longitude


XmlText

153.03484484553337


CalculationMethod


XmlText

Interpolation


UsageType


XmlText

Display


UsageType


XmlText

Route

 


array [empty]

 

I am trying to capture the address details in the above xml file 

 

I have tried the following code however it returns no data 

 

#####################

<cfset MyXMLDoc = xmlParse(cfhttp.FileContent)>

 

<!--- Get AdressNodes --->

<cfset AddressNodes =
xmlSearch(MyXMLDoc,'Response/ResourceSets/ResourceSets/Resources/Address')>

 

<cfdump var="#AddressNodes#">

#########################

 

 

Any advise on what I am doing wrong would be appreciated

 

 

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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to