Computer Science Canada

Formatting after a transformer

Author:  AK.E [ Wed Mar 11, 2009 7:49 pm ]
Post subject:  Formatting after a transformer

So I'm using a transformer to output my changes to an xml file. Is there a way that i could retain the proper formatting and whitespace instead of it being all on one line?

For example:
I'd rather have it like:
code:
<person>
      <name>Mike</name>
      <age>24</age>
</person>


Instead of:
code:
<person><name>Mike</name><age>24</age></person>

Author:  Tony [ Wed Mar 11, 2009 8:19 pm ]
Post subject:  RE:Formatting after a transformer

Don't XML viewer applications format the contents anyway? I'm pretty sure that Firefox does.


: