Is there anything equivalent to <BR>"xmlDoc.selectNodes(//XPath statement here)" in Javascript that works in Netscape 7?<BR><BR>I&#039;ve got the following Javascript which works fine in both IE and Netscape, right up to the line I&#039;ve marked:<BR><BR>function GetPage(thePage) <BR>{<BR> //For Netscape<BR> if (document.implementation && document.implementation.createDocument) <BR> var xmlDoc = document.implementation.createDocument("", "", null);<BR> //For IE<BR> else if (window.ActiveXObject)<BR> var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");<BR> //Otherwise<BR> else return;<BR> <BR> //Open the XML Doc<BR> xmlDoc.async="false";<BR> xmlDoc.load("khct.xml");<BR> <BR> // Select the div to be changed.<BR> var x = document.getElementById(&#039;main&#039;);<BR><BR> // THIS LINE DOES NOT WORK!<BR> var nodes=xmlDoc.selectNodes("/SITE/PAGE[@name=&#039;" + thePage + "&#039;]/text()");<BR><BR> // Change div innerHTML<BR> x.innerHTML = nodes.item(0).text;<BR>}