Parsing XML with the DOM

It simply isn't possible to write about XML while avoiding the DOM, or Document Object Model. The truth is that the DOM won't lead you down the path to insanity, although I can certainly respect Mr. Kay's opinion since I've struggled with the DOM myself from time to time. For this reason, you shouldn't think of the DOM as the end-all tool to XML processing for the Web.

It's just one of many tools that you should have in your XML development arsenal, ready to engage when needed. This tutorial explores the DOM and the basics of how it is used. In doing so, you learn how it provides a set of interfaces that can be used to represent an entire XML document programmatically. This tutorial discusses

  • What the Document Object Model is
  • The interfaces that make up the DOM
  • How to build programs that traverse the DOM
  • How to access specific data inside an XML document using the DOM
  • How to modify an XML document using the DOM
by BrainBellupdated