Basically I have formatted and indented xml and I want to convert that to a unformatted and non-indented , single line xml. For example how can I convert this
to
using
java. I want to resuse any xml parser api for achieving this. Can anyone please help me?