that was xmlparse() not zmlparse(), obviously.
> -----Original Message-----
> From: Rich Wild [mailto:r.wild@;e-mango.com]
> Sent: 29 October 2002 15:52
> To: CF-Talk
> Subject: RE: cfxml question
>
>
> (Despite the typo in the XML code)
>
> You don't need to use XMLParse() because when you use myxml
> it parses it all
> for you!
>
> when using the <cfxml> method, simply output
> #myxml.control.id.xmltext# to
> get the value of the ID, 100.
>
> you only need xmlparse when the xml document you provide it
> with is not
> already a native xml document. In your case you were
> providing it with a
> string rather than an XML document when using <cfset>. For
> this you need to
> zmlparse() it before using dot notation
>
> > -----Original Message-----
> > From: Scott Mulholland [mailto:smulholland@;accurateimaging.com]
> > Sent: 29 October 2002 15:58
> > 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