I'm using this code to select one node in my XML doc:
DOMDocument * theDOM;
...
XercesDocumentWrapper theXalanDoc(theDOM, true, true, true);
//XalanDocumentPrefixResolver thePrefixResolver(&theXalanDoc);
XalanSourceTreeDOMSupport theDOMSupport;
XalanNode * xalanNode = theXalanDoc.mapNode(theDOM->getDocumentElement());
XPathEvaluator theEvaluator;
XalanNode * theSigNode = theEvaluator.selectSingleNode(theDOMSupport,
xalanNode,
XalanDOMString("//MyNode").c_str());
DOMNode * sigNode = (DOMNode *)theXalanDoc.mapNode(xalanNode);
Well it throws an exception in selectSingleNode(). :(
The same xpath ("//MyNode") worked fine in MSXML. "MyNode" is last child of root element.
