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
19
Task/XML-Output/Sidef/xml-output.sidef
Normal file
19
Task/XML-Output/Sidef/xml-output.sidef
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
require('XML::Mini::Document');
|
||||
|
||||
var students = [
|
||||
["April", "Bubbly: I'm > Tam and <= Emily"],
|
||||
["Tam O'Shanter", "Burns: \"When chapman billies leave the street ...\""],
|
||||
["Emily", "Short & shrift"]
|
||||
];
|
||||
|
||||
var doc = %s'XML::Mini::Document'.new;
|
||||
var root = doc.getRoot;
|
||||
var studs = root.createChild("CharacterRemarks");
|
||||
|
||||
students.each { |s|
|
||||
var stud = studs.createChild("Character");
|
||||
stud.attribute("name", s[0]);
|
||||
stud.text(s[1]);
|
||||
};
|
||||
|
||||
print doc.toString;
|
||||
Loading…
Add table
Add a link
Reference in a new issue