My payload contains XML content received from a service. I have an expand/collapse panel that, when clicked, should display the content of the payload in a label by binding it. However, the issue is that the content is not displayed in a prettyprint standard XML format; instead, it appears randomly with one item after another.
I want the content to be displayed in a prettily formatted XML structure, like this, after expanding 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>
Instead of being displayed like this:
<bookstore>
<book category="children"><title>Harry Potter</title><author>J K.Rowling</author><year>2005</year> .....</bookstore>