RosettaCodeData/Task/XML-DOM-serialization/Lua/xml-dom-serialization.lua

7 lines
161 B
Lua

require("LuaXML")
local dom = xml.new("root")
local element = xml.new("element")
table.insert(element, "Some text here")
dom:append(element)
dom:save("dom.xml")