You might try trimming the cfsavecontent variable -- a lot of xml
parsers (stupidly) won't trim whitespace from the beginning of a file
and produce an error if there's white space before the doctype. Dave's
suggestion of using cfxml isn't a bad idea either -- though it may not
be as efficient -- though I wouldn't expect efficiency of that scale
to be significant unless it's a rather large xml packet receiving
inordinately large amounts of uncached traffic.

> I am creating an xml string to be used by XMLHTTP via
> javascript.

> the page that creates the xml string I am using
> <cfoutput><?xml
> version="1.0"?><root><elem></elem><elem2></elem2>......so
> on</root></cfoutput>

> Being on one straight line it is very hard to read.

> But if I use <cfsavecontent var="test">
> <?xml version="1.0"?>
> <root>
>     <elem></elem>
>     <elem2></elem2>
>     ......so on
> </root
> </cfsavecontent>  XMLHTTP has an error.  How can I use the
> savecontent method but output the xml like the first
> example?

> Thanks

> David


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/author/?id=4806
http://www.fusiontap.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201364
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to