Meanwhile, I had another idea. I don't manage to implement it without crashing, though. Probably because I can't find any documentation.
I avoid using XPathEvaluator, but instead use XPath::execute. This is a code snippet, which i inserted in the SimpleXPathApi sample code > // Parse the document... > XalanDocument* const theDocument = > theLiaison.parseXMLStream(theInputSource); > assert(theDocument != 0); > > XalanDocumentPrefixResolver > thePrefixResolver(theDocument); > > XPathProcessorImpl theProcessor; > XPathConstructionContextDefault theConstructionContext; > > > XPathExecutionContextDefault theExecutionContext( > XalanMemMgrs::getDefault()); > > XPath root(XalanMemMgrs::getDefault()); > theProcessor.initXPath(root, theConstructionContext, > XalanDOMString(argv[3]), thePrefixResolver); > > > // OK, let's find the context node... > const XObjectPtr& theResult = > root.execute(theDocument, thePrefixResolver, > theExecutionContext); > > Later I will change XPathExecutionContextDefault to my own class, but meanwhile this program crashes in execute(), and I can't see why. Moddy -- View this message in context: http://www.nabble.com/creating-variables-for-XPath-tp21823462p22176711.html Sent from the Xalan - C - Users mailing list archive at Nabble.com.