I'm having a problem with the function xmlDocDumpMemory truncating data in a doc. I've opened an 18MB (19661933B) file and read it in and added to the doc, but when I call xmlDocDumpMemory, it only returns 8MB (8388631B). When I access the data in the doc I can see the whole thing, but it doesn't get completely dumped out when I call xmlDocDumpMemory. There isn't a set limit on the memory allocated by xmlDocDumpMemory is there? Can anyone help?