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
18
Task/XML-Input/Lingo/xml-input.lingo
Normal file
18
Task/XML-Input/Lingo/xml-input.lingo
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
q = QUOTE
|
||||
r = RETURN
|
||||
xml = "<Students>"&r&\
|
||||
" <Student Name="&q&"April"&q&" Gender="&q&"F"&q&" DateOfBirth="&q&"1989-01-02"&q&" />"&r&\
|
||||
" <Student Name="&q&"Bob"&q&" Gender="&q&"M"&q&" DateOfBirth="&q&"1990-03-04"&q&" />"&r&\
|
||||
" <Student Name="&q&"Chad"&q&" Gender="&q&"M"&q&" DateOfBirth="&q&"1991-05-06"&q&" />"&r&\
|
||||
" <Student Name="&q&"Dave"&q&" Gender="&q&"M"&q&" DateOfBirth="&q&"1992-07-08"&q&">"&r&\
|
||||
" <Pet Type="&q&"dog"&q&" Name="&q&"Rover"&q&" />"&r&\
|
||||
" </Student>"&r&\
|
||||
" <Student DateOfBirth="&q&"1993-09-10"&q&" Gender="&q&"F"&q&" Name="&q&"Émily"&q&" />"&r&\
|
||||
"</Students>"
|
||||
|
||||
parser = xtra("xmlparser").new()
|
||||
parser.parseString(xml)
|
||||
res = parser.makePropList()
|
||||
repeat with c in res.child
|
||||
put c.attributes.name
|
||||
end repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue