Got it!!

        if(jQuery.browser.msie){
                var doc = new ActiveXObject("MSXML2.DOMDocument.4.0");
                doc.loadXML(xml)
                alert(jQuery("letter", doc).children().length);
        }


On Jan 26, 1:39 pm, Nicholas <nbar...@gmail.com> wrote:
> FF works fine, IE however reports 0 children() and I am finding it
> difficult to solve.
>
> Example XML retrieve from $.get:
> <?xml version="1.0" encoding="UTF-8"?>
> <letter>
>   <paragraph>text
>      <paragraph>text
>   </paragraph></paragraph>
>   <paragraph>text</paragraph>
> </letter>
>
> The code:
>
> jQuery.get("process.asp", {job:"getLetter", letterID:letterName,
> type:"xml"}, function(xml){
>         alert(jQuery(xml).children().length);
>
> }
>
> Have I got awry somewhere? Seems pretty straight forward. I've tried
> removing the xml doc definition as well as the <letter> tags. IE
> always reports 0 children.
>
> Thanks,
> Nick

Reply via email to