Display Raw XML within a textField

Does anyone know of an XML utility Class that will “auto-format” XML to display within a textField? Just looking for a down-n-dirty solution to display the entire XML tree (via xml.toXMLString()) within a textBox, but would love to find a utility that would format the XML so that it’s easier to read within a textField.

Something like:


<forecast
       segment="A"
       day_segment="Afternoon"
       day_of_week="4"
/>
<forecast
       segment="A"
       day_segment="Afternoon"
       day_of_week="4"
/>

thanks for any input.