> Not with CF natively.  XML (like HTML) is whitespace
> agnostic, so the
> XML doesnt care if it's one long line, or a nicely
> formatted
> (according to an arbitrary human).  You could probably
> write a
> formatter fairly easily, depending on the complexity of
> the formatting
> rules you wanted to enforce.

> At it's simplest, just do replace(xmlString, ">",
> ">#chr(10)#",
> "all"), but that'll only give you linebreaks, you'll have
> to write an
> actual parser that tracks nesting depth if you want to do
> indentation
> and stuff.

Come to think of it there might be a way to get the formatting
straight with a reasonably simple XSLT template also... XML to Text
.... I'd have to look into it.

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://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

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

Reply via email to