This page is no longer maintained — Please continue to the home page at www.scala-lang.org

XML attribute position

No replies
normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.

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 © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland