XML technologies / XML / Perl & XML / Tree-oriented processing
(Excerpt from "Perl & XML" by Erik T. Ray & Jason McIntosh)
Now that we are familiar with event streams, it is time to explore the second style of XML processing. Instead of letting individual small portions of an XML document pass by, we will read the entire document into memory before starting the actual processing. Having a representation of the document available for direct access makes the work considerably easier, but requires significantly more memory and CPU cycles.
This section provides an overview of working with persistent XML objects. This technique is better known as tree-oriented processing of XML, or simply tree processing. We introduce various modules and strategies for efficiently constructing XML trees. In particular, we cover the relevant standards, namely the Document Object Model (DOM) and XPath. The latter provides faster access to internal parts of a document.
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "Perl & XML" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top