This example is straight from the O'Reilly book "Programming ColdFusion
MX" by Rob-Brooks-Bilson, but I can't get it to work.
<cfxml variable="myXml">
<!-- employees for example.com -->
<company name="example.com">
<!-- begin employee listings -->
<employee id="1" years-service="10">
<name>Pere Money</name>
<title>President</title>
</employee>
<employee id="2" years-service="5">
<name>Aaron Ridge</name>
<title>Analyst</title>
</employee>
<employee id="3" years-service="4">
<name>Martin Grant</name>
<title>Manager</title>
</employee>
</company>
</cfxml>
<cfcontent
type="text/xml"><cfoutput>#toString(myXml)#</cfoutput></cfcontent>
When I browse the page from within Homesite, and when I navigate to the
page with IE, I get the following error:
"The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the
error and then click the Refresh button, or try again later.
End tag was not expected at this location. Error processing
resource
'http://rtfustst.rtp.epa.gov/webteam/Practice/chapter0...
</td></td></td></th></th></th></tr></tr></tr></table></table&..."
If I <cfdump> the code, it looks like perfectly good XML.
Any suggestions?
ed
----------------------------------------------------------------------
Ed Szwedo
Web Development Team Lead
CSC
E-mail: [EMAIL PROTECTED]
919-541-3955 (Voice)
919-541-3719 (Fax)
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------