Chapter One
Introduction to
XML with JAXP
This chapter is an overview of some of the basic things you will need to know before
you can understand the processing of XML documents using Java's Java API for XML
Processing (JAXP). Although the Java application programming interface (API) is rather
straightforward, you will need to understand how XML is constructed before you can
clearly understand the sort of things that can be done with the API. The fundamental
concepts described in this chapter include the fact that, like HTML, the XML language
is derived from SGML. This kinship between XML and HTML has brought about the existence
of a hybrid known as XHTML. There are two completely distinct parsers, named
DOM and SAX, that can be used to read the contents of an XML document.
Java and XML
Java was designed to make it possible to write completely portable programs. XML
was designe ...
read full excerpt from Java, XML, and JAXP ebook