Skip to Content
0
Former Member
Aug 21, 2007 at 08:06 AM

Transform XML-String to human readable XML-File

1196 Views

I need to transform a XML-String as coming from a simple transformation into a human readable XML-File. That means with linebreaks and logical indenting, each line not longer than n charactors.

Example:

<one><two>text</two><three><four>text</four></three></one>

into

<one>
  <two>text</two>
  <three>
    <four>text</four>
  </three>
</one>