Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/XML-XPath/Rascal/xml-xpath-2.rascal
Normal file
20
Task/XML-XPath/Rascal/xml-xpath-2.rascal
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
rascal>get_first_item(|file:///Users/.../Desktop/xmlpath.xml|)
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item stock="12" upc="123456789">
|
||||
<name>Invisibility Cream</name>
|
||||
<price>14.50</price>
|
||||
<description>Makes you invisible</description>
|
||||
</item>
|
||||
|
||||
|
||||
ok
|
||||
|
||||
rascal>print_prices(|file:///Users/.../Desktop/xmlpath.xml|)
|
||||
14.50
|
||||
23.99
|
||||
4.95
|
||||
3.56
|
||||
ok
|
||||
|
||||
rascal>get_names(|file:///Users/.../Desktop/xmlpath.xml|)
|
||||
list[str]: ["Invisibility Cream","Levitation Salve","Blork and Freen Instameal","Grob winglets"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue