Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coldfusion - XML Pretty Print

There are a lot of ways to pretty print XML, but I have yet to find one using a ColdFusion function.

This is a common question, but again I want to do this within ColdFusion.

like image 850
Rex Butler Avatar asked Jun 30 '26 08:06

Rex Butler


1 Answers

A quick search on http://cflib.org turned up xmlIndent().

<pre>#xmlIndent(xmlString)#</pre>
like image 109
Ben Doom Avatar answered Jul 02 '26 01:07

Ben Doom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!