Use HTMLEditFormat() rather than XMLFormat() and use <pre> tags around the
output to preserve the formatting.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


On 6 March 2010 14:06, Scott McAllister <stmcallis...@gmail.com> wrote:

>
> I've been given the task of outputting XML to the page in a readable
> format. We want all the XML tags to still display, but we want the output to
> be formatted pretty. If I use something like ToString(XmlParse(xmlString))
> the source behind the page looks perfect, but the output to the screen
> looses all the tags - as it should. However if I add
> XmlFormat(ToString(XmlParse(xmlString))) I get the correct output but all
> the formatting is lost.
>
> Is there a straightforward way to display pretty XML to the page using
> ColdFusion?
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331403
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to