This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml output formatting

 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am writing a DOM Document object to file using the TransformerFactory and Transformer classes.
It all works fine except for one thing. The output is one big block of text. I would like the xml to be indented properly.
I was looking at all the features and properties (and methods) of the factory and the transformer class but can't seem to find it.
It should be possible to write a formatted xml stream using a DOM object. Can anybody tell me how to do it?
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, I found it.
It was very simple but you just have to see it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic