$ lua5.3 testxml.lua -debug test.xml
File test.xml
File: test.xml
----------- XML
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru" sourcelanguage="en">
<context>
<name>npe:levels</name>
</context>
</TS>
----------- Print
XML Decl : xml
+ encoding='utf-8'
+ version='1.0'
lua5.3: ./XmlParser.lua:279: attempt to call a nil value (method '_parseDtd')
stack traceback:
./XmlParser.lua:279: in upvalue 'parseDtd'
./XmlParser.lua:371: in upvalue 'parseTagType'
./XmlParser.lua:447: in function 'XmlParser.parse'
testxml.lua:114: in main chunk
[C]: in ?
test run:
Qt Linguist TS File Format