title: DOMDocument to string xerces-c
body: <p>I have a parsed an XML document with xerces-c and can successfully write it to a file like the DOMPrint example, but I can not store this in an array.  I see online that I should still use a serializer, but I'm not sure what to change.  Obviously, instead of using a LocalFileFormatTarget, I should use something else, but looking online for a reference on MemBufFormatTarget gives no clue on how to use it.  How can I get a xml document to a string with xerces-c?</p>