I have an xml doc that looks like this
<xmp>
<?xml version="1.0" encoding="UTF-8"?>
<qry columns="10" rows="3">
<rec>
<address>400 Convention Blvd</address>
<city>Hot Springs</city>
<country>USA</country>
<eventid>9366</eventid>
<eventname>Embassy Suites Hotel & Spa-Hot Springs</eventname>
<prelimroomname>Salon a & B</prelimroomname>
<startdatetime>2009-05-04 17:00:00.0</startdatetime>
<state>AR</state>
<zip>71901 </zip>
<zipcode>71901</zipcode>
</rec>
</qry>
</xmp>
in a variable called result.
If I run
result.qry: #XMLGetNodeType(result.qry])#
it throws an error the says : Element QRY is undefined in RESULT
if I run
result.qry: #XMLGetNodeType(result['qry'])#
it returns the expected result of result.qry: ELEMENT_NODE
Can anyone shead anylight as to why the dot notation doesn't work?? I am using
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_t-z_21.html#139655
as an example to work from and the example is nearly idential and works fine
with the dot notation so I a very confused.
Thanks in Advance,
Lance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322083
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4