/*
Scriptol Example
"Parking"
Requirement:
- Scriptol interpreter, version A-24 or
- Scriptol C++ compiler version 6.0
Load an XML file, read data and values of attributes,
display the content, cars in a parking, type and number.
*/
include "libdom.sol"
dom p
p.load("parking.xml")
p.reset()
p.down()
while p.found()
text name = p.getValue("name")
text cars = p.getData()
print name,":", cars
let p.inc()