|
|
||
|
Why is this interesting? Trees are a natural data model to process XML documents. A simple tree implementation reads the entire document into memory at once. For large documents, this can be too expensive. Although callback and event APIs are memory-efficient, they are painful to program to.
Lazynode constructs an conventional-seeming XML tree as its contents are referenced, parsing more source document as necessary to fill out the contents on demand.
-John
-- http:// if ile.org/