add xml parser

This commit is contained in:
Evgeny
2021-08-20 00:16:51 +03:00
parent 96b0d03328
commit 851e0fffd8
4 changed files with 152 additions and 2 deletions

16
samples/xml-test.lua Normal file
View File

@@ -0,0 +1,16 @@
local xml = require "xml"
local test_xml =
[[
<test one="two">
<three four="five" four="six"/>
<three>eight</three>
<nine ten="eleven">twelve</nine>
</test>
]]
function on_resume()
local parsed = xml:parse(test_xml)
ui:show_text(parsed.test["@one"])
end