Coker, Jonathan M wrote:
That is actually one of the critical pieces of this. I am going to have
a base XML document that will need to have information added based on
certain initial conditions. Sorry for the code confusion - grabbed the
wrong file handle.
The real code should be in this message.
I suspect you should call XalanTransformer::initialize() rather than
XPathEvaluator::initialize() to make sure everything you could possibly use
is properly initialized.
If you really have to transform an XML document, I would suggest you
examine XSLT as a possible way of doing that, rather than using XPath to
find nodes and modify them. If you decide you really want to use XPath
remember the following:
1. You must make all modification through the Xerces-C DOM interfaces.
2. Ever time you modify the document, you must use a new Xalan-C
wrapper instance.
Dave