We often need to format a text block in xml to better visualize its content, after all we are human, aren’t we? In this post, we demonstrate a block of source code in java that does this job for us … I particularly use it a lot to inspect the request and response of a WebService in Soap … erghhh Soap. I know … But sometimes it is necessary … Have fun
This is a cool way to prettify your XML (String format) in Java Language: