Chapter 5. Using DOM

IN THIS CHAPTER

XML is a great way to represent data in certain situations. However, there needs to be a way in which to access this data and document structure in an intuitive way. Without this access, XML is virtually useless. The two most prevalent APIs for accessing this data are the DOM and SAX. DOM will be covered here, and SAX will be covered in Chapter 6.

This chapter will discuss the Document Object Model (DOM), which is an in-memory representation of a well-formed document. After a walk-through of the basics of DOM, we'll show examples of the various ways that the DOM structure can be traversed and manipulated. We'll move, ...

Get JSP™ and XML Integrating XML and Web Services in Your JSP™ Application 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.