manoelcampos / xml2lua

XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
MIT License
290 stars 74 forks source link

<!DOCTYPE TS>: attempt to call a nil value (method '_parseDtd') #24

Closed hhrhhr closed 5 years ago

hhrhhr commented 5 years ago

test run:

$ 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 ?

Qt Linguist TS File Format