O'Reilly logo

Java™ Web Services Unleashed by Mark Wutka, Joseph Weber, Arthur Ryman, K. Scott Morrison, Benoît Marchal, Matthias Kloppmann, Steven Haines, Darren Govoni, Francisco Curbera, Frank Cohen, Robert Brunner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Document Object Model (DOM)

The Document Object Model presents a tree representation of an XML document through a standards-based API that the World-Wide-Web Consortium (W3C) maintains. The DOM is better suited for applications that want to read information from an XML file, manipulate the XML data, and then eventually write the data out to a destination. Additionally, it offers the benefit over SAX that the document can be accessed randomly (the program does not have to read through the document sequentially).

The DOM does have a serious limitation in that it must read the entire XML document into memory. This is not a problem for the small example in the chapter, but in some real life applications, such as B2B e-commerce, XML files can get ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required