Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Formatting after a transformer
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AK.E




PostPosted: 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>
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: