OT kind of (xml layout)

2005-04-04 Thread David Brown
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?rootelem/elemelem2/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

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201352
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: OT kind of (xml layout)

2005-04-04 Thread Dave Watts
 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?rootelem/elemelem2/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?

If you're using CFMX, you might want to use CFXML instead of CFSAVECONTENT.
But honestly, does it really matter if it's hard to read? You can just save
it with a .xml extension, then open it in any browser and the browser will
make a nice readable tree for you.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201353
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


Re: OT kind of (xml layout)

2005-04-04 Thread David Brown
Thanks again Dave for the reply.  You are correct I just wanted to know if 
there was a way.

BTW on the webservice question that you answered yesterday.  changing the 
name from com to cfcs did not fix the problem.  I created a mapping to cfcs 
and I can still read the wsdl, but get an error when trying to invoke the 
webservice.

- Original Message - 
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Monday, April 04, 2005 10:54 AM
Subject: RE: OT kind of (xml layout)


 If you're using CFMX, you might want to use CFXML instead of 
 CFSAVECONTENT.
 But honestly, does it really matter if it's hard to read? You can just 
 save
 it with a .xml extension, then open it in any browser and the browser will
 make a nice readable tree for you.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201363
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


Re: OT kind of (xml layout)

2005-04-04 Thread S . Isaac Dealey
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?rootelem/elemelem2/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