parseXML adding line break
Im' trying to do a similar thing like this:
The result ends up like this:
- <?xml version="1.0" encoding="utf-8"?><root><obj someAttr="100500">some text</obj></root>
But what I really want is having line breaks like this:
- <?xml version="1.0" encoding="utf-8"?>
- <root>
- <obj someAttr="100500">some text</obj>
- </root>
Is that achievable? If so, how can it be done?