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?

Thanks!

-Scott 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:331402
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to