XML/XPath: Difference between revisions
Content added Content deleted
(→{{header|Scala}}: Replace with code that follow XPath semantics and the problem description more closely) |
|||
Line 2,771:
| </inventory>
scala> val firstItem =
▲firstItem: Option[scala.xml.Node] =
▲Some(<item upc="123456789" stock="12">
▲ <name>Invisibility Cream</name>
▲ <price>14.50</price>
▲ <description>Makes you invisible</description>
▲ </item>)
scala>
<price>14.50</price>
<price>23.99</price>
<price>3.56</price>
scala> val
names: Array[
▲names: Array[String] = Array(Invisibility Cream, Levitation Salve, Blork and Freen Instameal, Grob winglets)</lang>
=={{header|Sidef}}==
|