I have a Payload with xml content(from a service) and I have a expand/collapse panel on witch I click and display by binding in a label the content of that payload.
The problem is that is not displaying the stuff in a prettyprint standard xml format but it puts everything random like one stuff after another.
How do I pretty print the content to be something like this after I expand the panel:
<bookstore>
<book category="children">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="web">
<title>Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>
and not something like this:
<bookstore>
<book category="children"><title>Harry Potter</title><author>J K.Rowling</author><year>2005</year> .....</bookstore>