JQuery XML option node

Posted by JD on Stack Overflow See other posts from Stack Overflow or by JD
Published on 2009-09-25T11:09:19Z Indexed on 2010/03/19 23:01 UTC
Read the original article Hit count: 342

Filed under:
|
|
|

hi, I am having an issue with parsing XML with JQuery when there is a node with an option node

<preferences><dashboard>
<report id="si_pg_vw" order="0">
  <header>
    <data>
      <option type="reportname" value="Page View"/>
    </data>
  </header>
</report>

the following code in firebug returns no children

$reportElement.find("data")[0]

however if I change option to any other value ("option2", "test" etc) then the line above returns one child which is correct.

Am I mising something or is there a bug?

Thanks

John

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about Xml