You will no doubt need to XMLParse it first?



"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Rick Root
To: CF-Talk
Sent: Thu Mar 29 17:14:46 2007
Subject: Parsing an XML object from Flex

I'm having a problem parsing some XML that is being passed in from a Flex
application.

It looks like this:

<advanceReport type="bio">
    <recordTypes match="any">
        <recordType type="AL">
            <qualifications>
                <schools><school>T</school><school>WC</school></schools>
            </qualifications>
        </recordType>
    </recordTypes>
</advanceReport>

Now, I've got some code that converts such an XML object to a struct... it
works fine when I use <cfxml> to create the XML object, but I seem to get
errors when taking the XML object passed in from Flex.

For example,

  <cfdump var="#xmldoc#">
  <cfdump var="#xmldoc.advanceReport#">

The dump of the document itself looks exactly the same..  you can see it
here...

http://www.it.dev.duke.edu/public/xmlprob.htm

But the attempted dump of #xmldoc.advanceReport# (which works fine in the
above page), causes an error coming from Flex that says ADVANCEREPORT is not
defined in XMLDOC.

What's going on here?

Rick
-- 
CFMBB - Coldfusion Message Boards, Version 1.21 Now Available!
http://www.cfmbb.org




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274099
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