The line in XML sample was mistyped in my example
"<RESULT>Passed</STATUS>",
In actual code it is <RESULT>Passed</RESULT>

-----Original Message-----
From: Scott Mulholland [mailto:smulholland@;accurateimaging.com] 
Sent: Tuesday, October 29, 2002 10:58 AM
To: CF-Talk
Subject: cfxml question


I am creating a small bit of sample XML, and posting it via form to a
page to parse it.
 
When I create the XML by simply setting myXML=" all XML code here", it
works fine with XMLParse() and dot notation referencing of values.
 
When I create my xml using <cfxml></cfxml>,
I get the following error when trying to parse:
"Document Root Element is Missing."
 
This is what the XML variable contains also when it hits this page:
coldfusion.xml.XmlNodeList@7210a5
 
My cfxml call is below:
 
<cfxml variable="myXML">
 <CONTROL>
    <ID>100</ID>
    <KEY>200</KEY>
    <DATE>10252002</DATE>
    <ITEM>
        <STATUS>
            <RESULT>Passed</STATUS>
            <STATUS_DATE>10252002</STATUS_DATE>
        </STATUS>
    </ITEM>
  </CONTROL>
</cfxml>
 
Any ideas on this?
 
Thanks,
Scott


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to