Well, I tried the documentElements property too, and that didn't work
either. here is some more fun. The status and statusText properties
don't return:
....
if (xDoc.readyState==4) {
alert(xDoc.statusText); //returns "unknown"
alert(xDoc.responseText); //works fine
....
also, I did have this code working in IE when I used the DomDocument3.0
active X object. however, in xmlhttp it doesn't work (well, the
responseText method works).
here is a node of the XML file. i haven't edited this since it worked
fine before:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<?META http-equiv="Content-Type" content="text/xml"?>
<product>
<item>
<sSpec_Number>[deleted]</sSpec_Number>
<EPM_Product_Name>[deleted]</EPM_Product_Name>
<Architecture>[deleted]</Architecture>
<L2_Cache>512KB</L2_Cache>
<Clock__Speed>3</Clock__Speed>
<Front_Side_Bus_Speed>800</Front_Side_Bus_Speed>
<Other_Technologies>[deleted]Other_Technologies>
</item>
</product>
yeah, that selectNodes thing is a drag.
Thanks for your help.
km0ti0n wrote:
> > xDoc = xDoc.responseXML.xml;
>
> Only IE has the .xml property, also try accessing the documentElement
> of xDoc.responseXML.
>
> It might help if you show some of the xml that's beening returned. Is
> it actually well formed XML.
>
> Also if you want to use XPath Mozilla / FireFox doesn't have the
> selectNodes / selectSingleNode that IE Has. This is my implymentation
> of it :
>
> http://km0ti0n.blunted.co.uk/mozXPath.xap
>
> Hope that helps