Hello,
I am attempting to "pre-compile" some XPath queries to be run against XML documents on a very repeated basis. Because these
queries contain namespace prefixes, I need to include a PrefixResolver in the call to createXPath, but I am having a difficult time creating
a PrefixResolver to pass to createXPath.
Here is the code I am using:
XalanNamespacesStack theStack;
theStack.addDeclaration (XalanDOMString ("FpML"), XalanDOMString ("http://www.fpml.org/2003/FpML-4-0"));
theStack.addDeclaration (XalanDOMString ("xsi"), XalanDOMString ("http://www.w3.org/2001/XMLSchema-instance"));
XalanNamespacesStack::PrefixResolverProxy theProxy (&theStack);
The errors I am getting are of a parameter mismatch nature (similar to that below), although I am making the calls according to the prototypes in the
header files.
"RouterTable.cpp", line 33: Error: Cannot use xalanc_1_9::XalanNamespacesStack* to initialize xalanc_1_9::XalanNamespacesStack::PrefixResolverProxy*.
I'm working in a Solaris environment and we are currently using Xalan and Xerces both successfully (just not in this particular way).
I also wonder if there is a fundamental programming guide available for Xalan (that would explain, for instance, the use of the XALAN_USING_XALAN
and other directives). Although the samples are illustrative, they are not comprehensive.
I would appreciate any help that anyone can offer.
Many thanks,
Jerry Tennison
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.
