We use SAX to parse XML because it does not require the entire XML document to be read into memory in order to parse a single value. I read many articles that insisted SAX can only be used to parse/decode XML and not create it. Is this true?
Share
No, it isn’t true, you can encode XML to any Writer in Java using something similar to: