DOM xml document caching class (for reducing execution time, as requested by Ninestars)