You can do the same thing by wrapping with CFOUTPUT.  I don't think it
really matters which way you do it, but using CFOUTPUT makes more sense to
me because you're outputting something.  Not harping or anything, just
thought I'd chime in since the conversation seemed a little one-sided.  ;)

barneyb

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Todd Baum
> Sent: Friday, February 28, 2003 8:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [cf-xml] new user problems...
>
>
> Found the answer!  Hope this helps someone else.  Found a
> reference in the
> CF forums that discussed something similar to my problem.  I am using the
> <cfsetting enablecfoutputonly="Yes"> tag in my application.cfm
> file to help
> clean up the generated code.  This was also preventing the information
> within the XMLDatasource tags from being handled.  When I wrapped
> a set of
> <cfsetting enablecfoutputonly="Yes"> and <cfsetting
> enablecfoutputonly="No">
> tags around the XMLDatasource tag it started working fine.
>
> Again, hope this helps someone else...
>
> >
>
>
> Additional information, it appears that the 'ThisTag.GeneratedContent'
> variable is not being populated with the data between the start and end
> tags.  I have even tried putting just text there and it does not
> pick it up.
>   Any ideas, thoughts or comments?  Thanks.
>
>
> >From: "Todd Baum" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: [cf-xml] new user problems...
> >Date: Fri, 28 Feb 2003 15:55:39 +0000
> >
> >I played with my code some more and have found out the following:
> >
> >1) when calling the <cf_XMLDatasource> tag with type URL or File,
> >everything seems to work just fine.
> >
> >2) when calling with type Text, I still get the same error
> >
> >XMLParseError : -1072896680 : XML document must have a top level
> element. ,
> >Line:0, Text:
> >
> >I have tried having the XML start below the tag, on the same line as the
> >tag, with and without XML version tags, both on the same line
> and below the
> >datasource tag.  Nothing appears to help.  Anyone else have any similar
> >experiances or suggestions?  Thanks.
> >
> >
> >>From: "Todd Baum" <[EMAIL PROTECTED]>
> >>Reply-To: [EMAIL PROTECTED]
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [cf-xml] new user problems...
> >>Date: Thu, 27 Feb 2003 15:15:37 +0000
> >>
> >>I tweeked the code some and this is the actual error number I
> am getting:
> >>-1072896680.  Also, I re-installed msxml 4 sp1.  I still get the same
> >>error.
> >>
> >>I have also tried replacing "MSXML2.FreeThreadedDOMDocument" with
> >>"MSXML2.DOMDocument", "MSXML2.FreeThreadedDOMDocument.4.0" and
> >>"MSXML2.DOMDocument.4.0".  Nothing appears to make a difference.  Has
> >>anyone run into this problem before or know how I can correct
> it?  Thanks.
> >>
> >>>From: "Todd Baum" <[EMAIL PROTECTED]>
> >>>Reply-To: [EMAIL PROTECTED]
> >>>To: [EMAIL PROTECTED]
> >>>Subject: [cf-xml] new user problems...
> >>>Date: Wed, 26 Feb 2003 22:03:18 +0000
> >>>
> >>>I just downloaded and installed the latest version and it looks real
> >>>good.  I believe I got everything installed OK (had to edit
> the CF studio
> >>>tag files inorder to get the autocomplete to work properly though).  I
> >>>tried using the examples to play with the system and I keep
> getting the
> >>>following error:
> >>>
> >>>"XMLParseError : XML document must have a top level element. , Line:0,
> >>>Text: "
> >>>
> >>>The code looks like:
> >>>
> >>><cf_XMLDatasource name="XMLObject">
> >>>   <people>
> >>>           <person age="27" company="Torchbox">Tom Dyson</person>
> >>>           <person age="27" company="WildFusion">David Madison</person>
> >>>   </people>
> >>></cf_XMLDatasource>
> >>>
> >>>All of the examples and other messages in the forum show this working
> >>>just fine and I could not locate a reference to this error in
> the help or
> >>>in the forums.  Any suggestions?  I am running this on a Win2000 Pro
> >>>system with IE 6.0 installed.  I don't need a DTD or schema, right?
> >>>Again the examples do not show one.  I created a DTD and completed the
> >>>tags to reference it but that did not help.
> >>>
> >>>I also downloaded and installed the latest (4.0 sp1) version
> of MSXML and
> >>>that did not help.
> >>>
> >>>Any help?  Thanks!
> >>>
> >>>
> >>>
> >>>_________________________________________________________________
> >>>Protect your PC - get McAfee.com VirusScan Online
> >>>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >>>
> >>>
> >>>-----------------------+
> >>>cf-xml mailing list
> >>>http://torchbox.com/xml/list.cfm
> >>
> >>
> >>_________________________________________________________________
> >>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> >>http://join.msn.com/?page=features/virus
> >>
> >>
> >>-----------------------+
> >>cf-xml mailing list
> >>http://torchbox.com/xml/list.cfm
> >
> >
> >_________________________________________________________________
> >The new MSN 8: smart spam protection and 2 months FREE*
> >http://join.msn.com/?page=features/junkmail
> >
> >
> >-----------------------+
> >cf-xml mailing list
> >http://torchbox.com/xml/list.cfm
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -----------------------+
> cf-xml mailing list
> http://torchbox.com/xml/list.cfm
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003


-----------------------+
cf-xml mailing list
http://torchbox.com/xml/list.cfm

Reply via email to