You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sanjoy Ghosh <sa...@yahoo.com> on 2004/11/08 18:50:53 UTC

XPathFactory limitation

Hello,

Is there a limit on the number of XPaths that can be created from a
XPathFactory.

I find that after creating a number of XPaths with code of the form:

  XPath* const  partyPath = theXPathFactory.create();
  theXPathProcessor.initXPath( *partyPath, theXPathConstructionContext,
   XalanDOMString( "/fpml:FpML/dswg:party"), thePrefixResolver);

If I add one more such call, it throws an exception as does every other
XPath creation attempt after that.

Is there any way to increase the number of XPaths that can be created from a
XPathFactory.  Also what is the way release XPaths after they are no longer
needed?

I am using XPathFactoryDefault.  Should I switch to XPathFactoryBlock?  What
is a block?

Any help would be greatly appreciated.

Thanks,
Sanjoy Ghosh


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org