- Java XML Tutorial
- Java & XML Tool Overview
- Java SAX Parser
- Java SAX DefaultHandler
- Java SAX Schema Validation
- Java SAX Parsing Example
- Java SAX vs. StAX
- Java StAX
- Java StAX: XMLInputFactory
- Java StAX: XMLOutputFactory
- Java StAX: XMLEventReader - The Iterator API
- Java StAX: XMLEventWriter - The Iterator Writer API
- Java StAX: XMLStreamReader - The Cursor API
- Java StAX: XMLStreamWriter - The Cursor Writer API
- Java DOM
- Java DOM: The Document Object
- Java DOM Schema Validation
Java XML Tutorial
XML became very popular in the first half of the 2000 decade. Therefore Java developers needed to be able to parse and generate XML in Java. In the beginning Java developers had to use open source Java XML APIs, but since then standard XML APIs were added to Java.
Java XML APIs
Java comes with a set of tools to process XML. These Java XML tools are:
- SAX Parser
- StAX Parser
- DOM Parser
- XPath Evaluator
- XSL Processor
These are the Java XML processing tools the pages in this tutorial are focused on. The text Java & XML Tool Overview will tell you enough about each tool to get an idea of how these Java XML tools work, and what situations they are intended for. Each tool then has its own few pages showing how to use it and the features it has.
In addition to the Java XML tools the Java community has provided a set of tools too. Here are some of them:
I have currently not planned to write about the community tools in this Java XML tutorial, but I may change my mind later, and write a few introductory texts.
XML vs JSON
XML is in many situations being replaced by JSON as data exchange format. Web browsers can parse JSON natively, which makes JSON an easier data exchange format to use between browsers and web servers. Still, XML may be useful in other situations.