I\'m having a hard time trying to indent XML files using XMLSerializer
.
I\'ve tried
serializer.setFeature(\"http://xmlpull.org/v1/doc/featur
Have you tried using these two properties "in combination" on Serializer?
// indentation as 3 spaces
serializer.setProperty(
"http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " ");
// also set the line separator
serializer.setProperty(
"http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n");