Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML DOM parsing in Netscape 6+

Status
Not open for further replies.

Shipslitz

Programmer
Jul 21, 2003
10
0
0
US
Okay people...I've been seriously losing sleep over this one. I've got this GREAT application that is working in IE and I need to support Netscape. Please, Netscape programmers....help! ;)

Basically, I just can't seem to parse an XML file in Netscape 6+. Even the VERY BASIC doesn't seem to work. For example...here is a peice of code that "supposedly" works in Netscape 6+:
------------------------------------------------------------
var xmlDoc = document.implementation.createDocument("","doc",null);

xmlDoc.load("compatible_list.xml");
var menus = xmlDoc_menus.documentElement.childNodes;
loadVendors( menus[0].childNodes );
loadProducts( menus[1].childNodes );
loadProgramrelease( menus[2].childNodes );
loadOS( menus[3].childNodes );
------------------------------------------------------------

I understand the different methods used for parsing: childNodes, nodeValue, nodeName, appendChild, firstChild, lastChild, etc... IE even uses the text() and data() methods to extract the values from each node. I guess I must be missing one somewhere?

My Error (which is SO frustrating) is:

xmlDoc_menus.documentElement.childNodes has no properties

This works 100% in IE 5+. But I've been trying for DAYS to get this to work in NS 6+...and it's just not working.

I'm at my wits end. Any help would be greatly appreciated!
Thanks,
Ship



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top