Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/XML-Output/Nim/xml-output-1.nim
Normal file
11
Task/XML-Output/Nim/xml-output-1.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import xmltree, strtabs, sequtils
|
||||
|
||||
proc charsToXML(names, remarks: seq[string]): XmlNode =
|
||||
result = <>CharacterRemarks()
|
||||
for name, remark in items zip(names, remarks):
|
||||
result.add <>Character(name=name, remark.newText)
|
||||
|
||||
echo charsToXML(@["April", "Tam O'Shanter", "Emily"],
|
||||
@["Bubbly: I'm > Tam and <= Emily",
|
||||
"Burns: \"When chapman billies leave the street ...\"",
|
||||
"Short & shrift"])
|
||||
5
Task/XML-Output/Nim/xml-output-2.nim
Normal file
5
Task/XML-Output/Nim/xml-output-2.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<CharacterRemarks>
|
||||
<Character name="April">Bubbly: I'm > Tam and <= Emily</Character>
|
||||
<Character name="Tam O'Shanter">Burns: "When chapman billies leave the street ..."</Character>
|
||||
<Character name="Emily">Short & shrift</Character>
|
||||
</CharacterRemarks>
|
||||
Loading…
Add table
Add a link
Reference in a new issue