Michael Ellery wrote:
I'm wondering if there is a class or function in xerces that could be used to generate a string that represents the XML fragment for a given DOMElement node (that includes all children). I have a need to generate fragments from an existing DOM and would find this very useful. If this is covered in the docs/faqs somewhere, feel free to point me to an appropriate resource.
Please look at http://xerces.apache.org/xerces-c/faq-parse-3.html#faq-11 http://xerces.apache.org/xerces-c/program-dom-3.html#DOMLSSerializer Good luck! Vitaly