Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/XML-Output/Lua/xml-output-1.lua
Normal file
13
Task/XML-Output/Lua/xml-output-1.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
require("LuaXML")
|
||||
|
||||
function addNode(parent, nodeName, key, value, content)
|
||||
local node = xml.new(nodeName)
|
||||
table.insert(node, content)
|
||||
parent:append(node)[key] = value
|
||||
end
|
||||
|
||||
root = xml.new("CharacterRemarks")
|
||||
addNode(root, "Character", "name", "April", "Bubbly: I'm > Tam and <= Emily")
|
||||
addNode(root, "Character", "name", "Tam O'Shanter", 'Burns: "When chapman billies leave the street ..."')
|
||||
addNode(root, "Character", "name", "Emily", "Short & shrift")
|
||||
print(root)
|
||||
Loading…
Add table
Add a link
Reference in a new issue