Imported toXML for KVCache