1 Reply Latest reply on Dec 18, 2007 2:31 PM by Gregory Lafrance

    dataProvider in DataGrid not handling path well

    MonsonHaefel
      I have an example document structured as follows:
      <html>
      <head><style type=text/css> url{visibility: hidden}</style></head>
      <body>
      <span><a class="Customer" href=" http://localhost:8080/nfjs/customer?id=103" >Atelier graphique</a><br/></span>
      <span><a class="Customer" href=" http://localhost:8080/nfjs/customer?id=112" >Signal Gift Stores</a><br/></span>
      <span><a class="Customer" href=" http://localhost:8080/nfjs/customer?id=114" >Australian Collectors, Co.</a><br/></span>
      ...
      </body>
      </html>

      When I create a DataGrid and set the dataProvider={source.lastResult.html.body.span} it only works properly if I remove the <head> element .. it seems it cannot skip a sibling element when dereferencing an XML path.

      Any ideas?