12 lines
227 B
Lua
12 lines
227 B
Lua
|
local function cmd(args)
|
||
|
env.db = {}
|
||
|
collectgarbage("collect")
|
||
|
local parseFile = require('xmllpegparser').parseFile
|
||
|
env.file = args[2]
|
||
|
local doc,err = parseFile(env.file)
|
||
|
env.db = doc
|
||
|
env.changed = false
|
||
|
end
|
||
|
|
||
|
return cmd
|