Compacts the XML object for minimum memory usage.
Compacting a document renders existing kXmlItem handles invalid.