• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Write an XML file with SAX?

 
Nils Persson
Greenhorn
Posts: 21
  • 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: 13071
6
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic