Page 1 of 1

FIREFOX:XPath doesnt find nodes with capital letters... why?

Posted: Mon Jan 22, 2007 6:13 pm
by rawbot69
Why the hell in the world does XPath not find nodes that have a capital letter in them. This is really bothering me and how do I enable this propaganda? I mean, its really bugging me, i finished this app and I used dummy data which had no capitals - then we got real data and it does NOT work. What IS GOING ON?! PLEASE HELP ME?!

This is how i get my XML

var parser = new DOMParser();
var domDoc = parser.parseFromString(this.getResponseText(), "text/xml");

This is how I perform an XPATH operation:

nodes = document.evaluate(expression, data, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);

expression: /bf/SME

returns 0 results... im going to rott to death if this doesnt come through...

but it works fine if I do /bf

?!@!@!@

Posted: Mon Jan 22, 2007 6:35 pm
by rawbot69
Ok... i found a solution...

you must use DOMParser and then XPathEvaluator to get the nodes....

it doesnt work any other way... using document.evaluate on XMLHTTPRequest DOES NOT WORK PEOPLE