A library for persisting XML/HTML DOM to local file storage using memory caching and element level indexing