Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/XML-Output/Julia/xml-output.julia
Normal file
16
Task/XML-Output/Julia/xml-output.julia
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using LightXML
|
||||
|
||||
dialog = [("April", "Bubbly: I'm > Tam and <= Emily"),
|
||||
("Tam O'Shanter", "Burns: \"When chapman billies leave the street ...\""),
|
||||
("Emily", "Short & shrift")]
|
||||
|
||||
const xdoc = XMLDocument()
|
||||
const xroot = create_root(xdoc, "CharacterRemarks")
|
||||
|
||||
for (name, remarks) in dialog
|
||||
xs1 = new_child(xroot, "Character")
|
||||
set_attribute(xs1, "name", name)
|
||||
add_text(xs1, remarks)
|
||||
end
|
||||
|
||||
println(xdoc)
|
||||
Loading…
Add table
Add a link
Reference in a new issue