After receiving this XML string from the server:
<find-item-command xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" find-method="Criteria" item-class="com" only-id="false" xsi:schemaLocation=""> <criteria> <criterion> <descriptors> <descriptor>DPSystemEventItem</descriptor> </descriptors> <value>cluster.manager.active</value> </criterion> </criteria> </find-item-command>
I want to format it nicely in my module like this:
<find-item-command
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" find-method="Criteria" item-class="com" only-id="false" xsi:schemaLocation="">
<criteria>
<criterion>
<descriptors>
<descriptor>DPSystemEventItem</descriptor>
</descriptors>
<value>cluster.manager.active</value>
</criterion>
</criteria>
</find-item-command>
What is the most efficient way to pretty print it?