debug appendXml