A
a
Hi everybody,
I am using AJAX to request an XML doc from the server.
I get it and it's well formed - I test it with:
alert( req.responseText );
then I try to access the various elements in the document and I start at the
root:
var xml_doc = req.responseXML;
var root_node = xml_doc.documentElement;
xml_doc is a valid object, but root_node is null. I tried with other dom
methods:
getElementsByTagName( 'root' )[ 0 ] etc, but the root_node var is always
null.
I am testing this on IE 6.
Any ideas what causes this?
Thanks,
A
I am using AJAX to request an XML doc from the server.
I get it and it's well formed - I test it with:
alert( req.responseText );
then I try to access the various elements in the document and I start at the
root:
var xml_doc = req.responseXML;
var root_node = xml_doc.documentElement;
xml_doc is a valid object, but root_node is null. I tried with other dom
methods:
getElementsByTagName( 'root' )[ 0 ] etc, but the root_node var is always
null.
I am testing this on IE 6.
Any ideas what causes this?
Thanks,
A