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

Questions about XML that are not covered by the other forums should go here.
rawbot69
Posts: 6
Joined: Thu Jan 18, 2007 10:11 pm

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

Post 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

?!@!@!@
rawbot69
Posts: 6
Joined: Thu Jan 18, 2007 10:11 pm

Post 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
Post Reply