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....

> 
> > -----Original Message-----
> > From: Klaus Hartl [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 16 February 2007 3:55 a.m.
> > To: [EMAIL PROTECTED]; jQuery Discussion.
> > Subject: Re: [jQuery] getting children using XPath in IE
> >
> > Matthew Delmarter schrieb:
> > > Hi Karl,
> > > alert( $("/xmlelement").children().length );
> > >
> > > or
> > >
> > > alert( $("//xmlelement").children().length );
> >
> > Have you tried:
> >
> > $("/xmlelement/*").length ?
> >
> >
> >
> > -- Klaus
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to