Pls help me in exploring the SAX parser, and do tell me whether we can generate a XML file from a XML schema using SAX like we do using DOM and castor objects, or is SAX just used for the sole purpose of parsing
William Brogden
,
Author and all-around good cowpoke
You can generate a stream of events that mimic the output of a SAX parser and use them to create XML documents. I know of no way to automatically use XSD, that requires programming on your part to combine your data with the XSD structure information.
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Thanks! bear JavaRanch Sheriff
Post by:autobot
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
a bit of art, as a gift, the permaculture playing cards