XML attribute position

He,

I am computing XPath expressions but for attributes it seems like their position is somehow changed:

$ scala
Welcome to Scala version 2.7.7.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_17).
Type in expressions to have them evaluated.
Type :help for more information.

scala>
res0: scala.xml.Elem =

scala>

So, referring to "/attribute::*[2.0]" gives me the "c" attribute rather than the "b" attribute :(

Any suggestions?

Cheers,
--
Normen Müller

Copyright © 2013 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland