Hey, I am attempting to process an XML document using jQuery but am hitting a brick wall. I've looked all over the web and it looks like this should be a very simple thing to do but I keep getting the error "Object does not support this property or method.".
I'm using jQuery 1.2.1 in IE6. I've switched to the unpacked version of jQuery and IE is reporting the error is happening on line 1363, which turns out to be the following line: r = jQuery.merge( r, ret[i].getElementsByTagName( tag )); I've simplified my code as much as possible to eliminate as many complications as possible. The code I am executing is the following: var xml = "<subscr.Subscriber>" + " <subscriberId>1</subscriberId>" + " <subscriberName>Default customer</subscriberName>" + "</subscr.Subscriber>"; alert(xml); // Verify xml contents var xmlData = jQuery(xml); alert(xmlData.length); // Not sure what the length should be, // but just checking the xmlData was created properly var id = xmlData.find('subscriberId').text(); // Crashes here alert(id); // Should output '1' if it makes it here I've also tried an alternate method of selecting my value, namely: jQuery('subscriberId', xml).text(); but this fails to at the same point. Am I doing something wrong or missing something in my code? Has anyone else encountered this error message? Thanks in advance, Jamie Goodfellow