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.

  

  

 

 

 

back to top