Matthew Delmarter schrieb:
> Hi all,
>
> So at this stage I am assuming that what I am trying to do is not possibly
> with jQuery in Internet Explorer?
>
> $("/xmlelement/*").length returns 2 entire HTML sections of the page which
> is completely wrong.
>
> $("//xmlelement/*").length returns what I need, but only works in Firefox,
> in IE I get nothing.
>
> So basically at this stage I have found no way of selecting an XML element
> on the page and iterating through its child nodes in IE.
>
>
> Again - here is the sample XML - I am trying to iterate through the four
> sub-elements inside <xmlelement> - but no luck in IE.
>
> <xmlelement>
> <subelement1></subelement1>
> <subelement2></subelement2>
> <subelement3></subelement3>
> <subelement4></subelement4>
> </xmlelement>
>
> Thanks for your help so far....
You're talking of HTML sections... so now I'd like to know what exactly
does your XML document look like (no simplified example please)? Is
there an XML declaration on top? Do you serve it as text/xml? Have you
checked if its wellformed?
If there's HTML inside the subelements, are you using CDATA sections for
these? Have you tried stripping all white space between the elements?
Have you tried using CSS selectors?
$('xmlelement > *')
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/