Using Sarissa and selectSingleNode

S

scot.haynes

Can anyone help me with the following problem I'm having using the
Sarissa parser. I am running the following java script

var xml = Sarissa.getDomDocument();
xml.async = false; //Load my xml file containing many child Country
elements.
var objNodeList = xml.getElementsByTagName("Country");
//Walk the Dom
var myCountry =
objNodeList.item(sourceCountry.value).getAttribute("Name");
var xpathstring = "//Country[@Name = '" + myCountry + "']";
var xmlCountry = xml.documentElement.selectSingleNode(xpathstring);

For some reason in the Firefox 1.5.0.1 browser the xmlCountry variable
is not being populated.

Does anyone have a suggestion as to how I can get this code to work
properly in Firefox?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top