0

A user asked this a while ago. Why not work on the latest versions of Mozilla?

Getting attribute using XPath

Given an XML structure like so:

<bookstore>

<book>
  <title lang="eng">Harry Potter</title>
  <price>29.99</price>
</book>

<book>
  <title lang="eng">Learning XML</title>
  <price>39.95</price>
</book>

</bookstore>

I'm using this expression:

path="/bookstore/book/title/@lang";

It works on Google Chrome, Opera, Internet Explorer, Safari. But not in Mozilla Firefox. Only happens with attributes (@ or attributes::).

I tried in Mozilla 6 and works perfect, but not in Mozilla 33 or 34

Community
  • 1
  • 1

0 Answers0