Looks like you have CF debugging on.  Try turning it off for this page with
<cfsetting showdebugoutput="false" />


DK
On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I'm reading the O'Reilly book "Head Rush Ajax", and in Chapter 6, they
use XML to send back more than one piece of information from the server.
The problem is, all the examples use PHP.  I was attempting to convert
the PHP page that returned the XML response to a CFML page.  A basic
step towards this goal is to generate an XML document that I can then
send back  The code that I wrote as an exercise will then retrieve the
XML document from the responseXML property of the request object and
extract the information I need.  So again, first step is to be able to
return an XML document in response to my Ajax request.


ed
----------------------------------------------------------------------
Ed Szwedo

Web Development Team Lead
CSC
E-mail: [EMAIL PROTECTED]
919-541-3955  (Voice)
919-541-3719  (Fax)



             Teddy Payne
             <[EMAIL PROTECTED]
             il.com>                                                 To
             Sent by:                 [email protected]
             [EMAIL PROTECTED]                                         cc

                                                                Subject
             12/27/2006 03:34         Re: [ACFUG Discuss] Problem with
             PM                       XML


              Please respond
                    to
             [EMAIL PROTECTED]
                   .org






I also got the same error, but it depends on what you want to do with
the XML.  What are you looking to learn from the snippet?

Are you trying to get child nodes, attributes or values?

Teddy


On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
wrote:
  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
  -------------------------------------------------------------






--
<cf_payne />
Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org
-------------------------------------------------------------
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 FusionLink
-------------------------------------------------------------



-------------------------------------------------------------
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
-------------------------------------------------------------






--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



-------------------------------------------------------------
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
-------------------------------------------------------------

Reply via email to