Michael Ellery wrote:
Vitaly Prapirny wrote:
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

Thanks for the advice.  Sadly, my project still uses Xerces 2.8 and
these classes don't appear to be there. I see something called
DOMDocumentFragment, but I'm not sure if that will do what I need. Do I
have any decent option in xerces 2.8?

There is the FAQ page for xerces 2.8 also :)
http://xerces.apache.org/xerces-c/faq-parse-2.html#faq-14
http://xerces.apache.org/xerces-c/program-dom-2.html#DOMWriter

Good luck!
        Vitaly

Reply via email to