[jQuery] Re: Parsing XML using jQuery

2008-07-09 Thread Wallonman
It seems that the DOM parsed 'on the fly' isn't ready for querying. When doing something weird like: var xml = $('Hello World!Bye World!'); $(xml).appendTo("body"); then the alert($("p").text()); // without context works !

[jQuery] Parsing XML using jQuery

2008-07-09 Thread Wallonman
Hi, Some hours that I don't understand why this basic Xml parsing with JQuery doesn't work: $(document).ready(function() { var xml = 'Hello World!'; alert($("p", xml).text()); }); I get an empty string, instead of the expected Hello Wor