- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
XML attribute position
Tue, 2010-01-12, 16:30
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