XML/XPath: Difference between revisions
Content added Content deleted
(Add XPaths corresponding to the original solution semantic) |
(→{{header|Scala}}: Change second task to follow semantics of the original example) |
||
Line 2,779:
</item>)
scala> xml \\ "price" map (_.text) foreach println
scala> val names = (xml \\ "name").toArray
|