CHAPTER 14

image

Using XML

Although the two aren’t inherently tied together, the eXtensible Markup Language (XML) and Java are often discussed in the same context. This chapter explains why that’s the case and provides an overview of XML, along with a description of some of the tools available and when and how to use them. You’ll look at the following:

  • What XML is and how to create an XML document
  • Parsing and validating XML documents using the Document Object Model (DOM)
  • Using XML namespaces to eliminate ambiguities where a document uses multiple Document Type Definitions (DTDs)
  • Transforming XML documents with eXtensible Stylesheet Language Transformations ...

Get Pro Java 8 Programming, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.