Learn how to choose the right Java API for your application and get started coding with XML and Java. In this course, author David Gassner shows you how to read and create XML strings and files, decide whether to use a streaming or tree-based API, and find out which APIs are compatible with Android. Plus, discover how to use both standard APIs that are included with the Java SE and EE distributions, such as DOM, SAX, and JAXB, and learn about popular open-source libraries such as JDOM and the Simple XML Serialization framework.
Topics include:
- Choosing a Java-based XML API
- Reading XML as a string
- Comparing streaming and tree-based APIs
- Parsing XML with SAX
- Creating and reading XML with DOM
- Adding data to an XML document with JDOM
- Reading and writing XML with StAX
- Working with JAXB and annotated classes
- Comparing Simple XML Serialization to JAXB