Hey all, got this XML:

<cfsavecontent variable="x"><?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0";>
        <Placemark>
                <name>London SE14 6QP</name>
                <address>London SE14 6QP</address>
                
<styleUrl>root://styleMaps#default+nicon=0x304+hicon=0x314</styleUrl>
                <Point>
                        <coordinates>-0.030183,51.471709,0</coordinates>
                </Point>
                <LookAt>
                        <longitude>-0.030183</longitude>
                        <latitude>51.471709</latitude>
                        <range>1000.000000</range>
                </LookAt>
        </Placemark>
</kml></cfsavecontent>

Which I want to navigate to the long and lat values. I wanted to do an
XMLSearch but the xmlns attribute is stopping it from working.

The following code to test it highlights the problem. If you remove the
namespace it works. Any ideas on how to get this to work other than drilling
down with XmlChildren syntax.

<cfset x = XMLParse(x, false)>

<cfdump var="#x#">

<cfdump var="#XMLSearch(x, '//LookAt')#">

Cheers.

Adrian Lynch
http://www.adrianlynch.co.uk/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302034
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to