For reading XML, there is SAX and DOM built into Java 1.5. You can use JAXP and not need to know details about what parser is available... So, what are some prescribed APIs for one to write XML documents in Java 1.5 and earlier?
- I don't want to use a third party binary
- I don't want to assume a Sun VM or IBM VM etc and use some specialized class
- Whatever means there is of writing the document, I would like to read in a complementary way.
- Performance and suitability for large XML files is not particularly important
Ideally, a read-and-write with no changes is just a few lines of code.