When I use the XPathEvaluator, reference namespaces in the XPath
expression, and pass in the namespace node as the last parameter to
selectSingleNode:
XPathEvaluator xEvaluator;
pxNode = xEvaluator.selectSingleNode(theDOMSupport, m_pxNode,
"//xsl:if", pElem);
I get an access violation in DOMServices.cpp line 759:
while (parent != 0 && length(*theNamespace) == 0
&& ((type = parent->getNodeType()) == XalanNode::ELEMENT_NODE
|| type == XalanNode::ENTITY_REFERENCE_NODE))
The reason for this is that the string theNamespace is null. Changing
'length(*theNamespace) == 0' to 'length == 0' did the trick. Just wanted
to check if maybe I'm using the XPathEvaluator wrong or if this is a
known problem?
Thank You.
Kristofer Agren
www.pakalert.com -- Track and receive e-mail
alerts for all your FedEx/UPS/Airborne packages.