Chapter 1. An XML Primer

"XML gives Java something to do."

Jon Bosak, XML, Java, and the Future of the Web

IN THIS CHAPTER

This chapter introduces you to the Extensible Markup Language (XML). I will cover its history, benefits, and components. The components will be discussed and demonstrated in detail that include the prolog, elements, attributes, comments, and the document type definition (DTD). Some advanced topics are deferred to Chapter 4, "Advanced XML." The top priority of this chapter is for you to master enough of the basics to prepare you to begin parsing XML in the next chapter.

Get XML Development with Java™ 2 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.