XML/XPath: Difference between revisions

m
Line 1,458:
println("Array of names of items:\n\t", map(s -> debracket(string(s)), namearray))
</lang>{{output}}<pre>
The first item's node XML entry is:
<item upc="123456789" stock="12">
<name>Invisibility Cream</name>
<price>14.50</price>
Line 1,466:
 
 
Prices:
14.50
23.99
Line 1,473:
 
 
Array of names of items:
["Invisibility Cream", "Levitation Salve", "Blork and Freen Instameal", "Grob winglets"]
</pre>
 
 
=={{header|Kotlin}}==
4,105

edits