Techniques for accessing data that resides in a document on a
computer-readable medium by a device with device resources of limited
resource amount include determining usage for each portion of the
document that consumes the device resources of a plurality of portions of
the document. Each portion may be accessed independently of a different
portion of the document. Based on the usage, a particular portion of the
document is selected to cease consuming the device resources. The device
resources consumed by the particular portion are released. The techniques
allow a document-processing device with limited resources to scale up to
process a large document that would otherwise exceed the available
resources. This capability is an advantage when first inserting a large
XML document, which cannot be fully manifested in available memory, as
multiple loadable units into a database or other persistent store.