File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Write an XML file with SAX?

 
Nils Persson
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am I able to write an XML file from the beginning using SAX? (beginning = write tags etc from scratch)Or is it only possible to parse the existing XML file with SAX?
/Nils
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13047
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can write a class that generates a complete set of SAX events just as if it was parsing a document and connect it to one of the stock SAX transformers to create output. Thats what Cocoon does - sorry I can't remember the exact class right now.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic