Indrajit Bhattacharya wrote:
Hi Dave,
Thanks a lot for your reply.
>>We store all our data as xerces DOM in our application. Is there any
problem using these xercesc::DOMNode* data with Xalan for XPath and XSLT ?
>>
>
>That depends on what you mean by "problem..."
Here my intension is: given a xercesc::DOMNode* pointer, we need to
perform XPath expression evaluation, the expression being taken from
user of the application. Do you see any issue in this use model ?
As I said before, the issues are with the size of the DOM instance, and the
kinds of XPath expressions you use. Memory usage is higher when using the
Xerces-C DOM, because Xalan-C create objects that wrap the DOM nodes. So,
if you expect to use very large documents, the memory requirements might
cause problems.
Also, ordering node-sets is much slower with the Xerces-C DOM, as it is
does not have an efficient way to order nodes. If you evaluate lots of
XPath expressions with multiple steps, and those expressions return lots of
nodes, you will find performance will suffer.
Dave