This might sound strange but try using all caps: alert($("TABLE1", xml).text());
...and if that works, then try this function to initialize your XML instead of jQuery: // Convert text to XML DOM var text2xml = function(s) { var x, ie = /msie/i.test(navigator.userAgent); try{ var p = ie? new ActiveXObject("Microsoft.XMLDOM") : new DOMParser(); p.async = false; }catch(e){ throw new Error("XML Parser could not be instantiated") }; try{ if(ie) x = p.loadXML(s)? p : false; else x = p.parseFromString(s, "text/xml"); }catch(e){ throw new Error("Error parsing XML string") }; return x; }; 2008/7/16 Tzury <[EMAIL PROTECTED]>: > > > xml = $(' {xml goes here} '); > > > > added "xml = $(xml);" (see below) > still not working on IE7 > > <script src="jquery.js"></script> > <script> > var xml = "<NewDataSet>" > + "<Table1>" > + "<a>Hello</a>" > + "<b>jQuery</b>" > + "</Table1>" > + "</NewDataSet>"; > > xml = $(xml); > > alert($("Table1", xml).text()); > > </script> > -- Cheers, Diego A.