Java XML Tutorial

Jakob Jenkov
Last update: 2015-05-28

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:

  1. SAX Parser
  2. StAX Parser
  3. DOM Parser
  4. XPath Evaluator
  5. XSL Processor
  6. JAXB

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:

  1. XML Beans (Apache)

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.

Jakob Jenkov

Featured Videos

Java ConcurrentMap + ConcurrentHashMap

Java Generics

Java ForkJoinPool

P2P Networks Introduction

















Close TOC
All Tutorial Trails
All Trails
Table of contents (TOC) for this tutorial trail
Trail TOC
Table of contents (TOC) for this tutorial
Page TOC
Previous tutorial in this tutorial trail
Previous
Next tutorial in this tutorial trail
Next