Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
14
Task/XML-XPath/LiveCode/xml-xpath.livecode
Normal file
14
Task/XML-XPath/LiveCode/xml-xpath.livecode
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
put revXMLCreateTree(fld "FieldXML",true,true,false) into xmltree
|
||||
|
||||
// task 1
|
||||
put revXMLEvaluateXPath(xmltree,"//item[1]") into nodepath
|
||||
put revXMLText(xmltree,nodepath,true)
|
||||
|
||||
// task 2
|
||||
put revXMLDataFromXPathQuery(xmltree,"//item/price",,comma)
|
||||
|
||||
// task 3
|
||||
put revXMLDataFromXPathQuery(xmltree,"//name") into namenodes
|
||||
filter namenodes without empty
|
||||
split namenodes using cr
|
||||
put namenodes is an array
|
||||
Loading…
Add table
Add a link
Reference in a new issue