Reply to topic
Problem Parsing XML (Cross posted to macromedia)
msturner


Joined: 21 Apr 2004
Posts: 11
Reply with quote
I have a very simple xml document I want to read:
<?xml version="1.0" encoding="iso-8859-1"?>
<teaminformation>
<newsitem date="07/16/2007" category="practices">
<title>Next Week's Practices</title>
<details>We currrently have practices scheduled for next ...</details>
</newsitem>
<newsitem date="07/16/2007" category="practices">
<title>Next Week's Practices Problem</title>
<details>I was only able to move to an EARLIER practice for...</details>
</newsitem>
<newsitem date="07/17/2007" category="practices">
<title>Next Week's Practices Amended</title>
<details>Mrs. Johanning pointed out a schedule conflict ...</details>
</newsitem>
</teaminformation>

I use the technique right out of the CFM Reference Book:

<cffile action="read" file="c:\websites\newsitems.xml" variable="xmldoc">
<cfset mydoc = XmlParse(xmldoc)>
<cfdump var="#mydoc#">

I can dump the "xmldoc" variable so I know the file is being read. but when I dump the "mydoc" I get the following error:
Error Diagnostic Information

An error occurred while evaluating the expression:


mydoc = XmlParse(xmldoc)



Error near line 30, column 7.
--------------------------------------------------------------------------------

Error resolving parameter XMLPARSE


ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:

You have misspelled the parameter name, or
You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.

Can anyone help me with this?

Thanks
Monte
msturner


Joined: 21 Apr 2004
Posts: 11
Reply with quote
Turns out my account is using CF 5. So this function would not even work.

Nevermind folks

Monte
Problem Parsing XML (Cross posted to macromedia)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic