David,
Thanks for pointing that out, this is exactly what I needed!
Sincerely,
Keith Reynolds
-----Original Message-----
From: David Bertoni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 23, 2005 1:14 PM
To: [email protected]
Subject: Re: XercesDOMSupport: Converting between Xalan nodes and Xerces
DOM nodes for removal
The call returns a pointer to const DOMNode, because Xalan-C never
modifies the source tree, so that is codified in the function
signatures. Since it's your DOM tree, you can feel free to cast away
const to make the call with the Xerces-C instances:
xerces_parent->removeChild(const_cast<DOMNode*>(xerces_node));
Note that you can never modify the document through the Xalan-C wrapper
classes -- they do not support any of the mutating member functions of
the DOM.
Dave