Releases: jonathanpoelen/lua-xmllpegparser
Releases · jonathanpoelen/lua-xmllpegparser
v2.2.0
Now default parsers extract the doctype
element:
doctype = {
pos=number, -- when pos parser
name=string,
ident=string or nil,
pubident=string or nil, -- when ident != SYSTEM
dtd=string or nil,
}
New functions:
toString()
escapeFunctions()
escapeComment()
escapeAttribute()
escapeAttributeAndAmp()
escapeCDATA()
escapeText()
escapeTextAndAmp()
v2.1.5
parseFile()
now closes open files
v2.1.4
- Fix
DOCTYPE
parser
v2.1.2
- Fix parser with a visitor who has tag() without proc() or vice versa, and with
accustr
different fromfalse
. - Fix parsing error when the visitor's functions return something
v2.1.1
- add
lastpos
anderror
in the default parsers. - add
lastpos
andxmlstring
parameters tovisitor.finish()
. visitor.init
can return the starting position of the parsing.- add
withoutPos
parameter tomkVisitor()
. - 2 new parsers:
treeParserWithoutPos
treeParserWithoutPosWithReplacedEntities
- 2 new functions:
enableWithoutPosParser([bool])
setDefaultParsers(parser, parserWithReplacedEntities|bool|nil)
v2.1.0
Same as the version v2.1.1, but additionally contains xmlparser
project.
v2.0-4
Version 2.0.4
v2.0.3
Fixed rockspec files for luarocks package manager.
v2.0.2
- rename xmlparser2 to
xmllpegparser
- fix
xmllpegparser.parseFile
v2.0.1
- fixed xmlparser2.parseFile