Hello,
 
I am new to Xalan C++, Please let me know how caching works.
 
My XPath Expressions are
XML/GROUP/ID1
XML/GROUP/ID2
XML/GROUP/ID3
.....
1000 times .
etc.
 
And XML Doc is
<ROOT><XML><GROUP><ID1>1</ID1>........</GROUP></XML></ROOT>
 
My Context Node is always ROOT. This root element is not static,
thats why our contextNode is always ROOT.
 
my API is like this.
 XalanNodeRefList =  selectNodeList( ContextNode,....,..., Xpath Expr,....);
and looping through nodes and getting results.
 
Question: Only ID is different, ROOT/XML/GROUP is common for all expressions.
Is there anyway, to cache ROOT/XML/GROUP once and get elements
from that node?. Otherwise for each ID, we have to parse it from Root . This may be slow. May be I am wrong. I am not sure abut Xalan Implementation.
 
Is there any good Documentation on Xalan-C++. Please let me know.
 
Regards,
LJ
 
 
 
 


Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Reply via email to