# Display Raw XML within a textField

**URL:** <https://forum.kirupa.com/t/display-raw-xml-within-a-textfield/284970>\
**Category:** flash\
**Created:** [March 25, 2009, 5:33pm UTC](https://forum.kirupa.com/t/display-raw-xml-within-a-textfield/284970 "2009-03-25T17:33:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [March 25, 2009, 5:33pm UTC](https://forum.kirupa.com/t/display-raw-xml-within-a-textfield/284970/1 "2009-03-25T17:33:39Z")

</div>

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:

```auto

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

```

thanks for any input.
