lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


## About

LuaExpat is a SAX XML parser based on the Expat library. SAX is the
Simple API for XML and allows programs to:

  - process a XML document incrementally, thus being able to handle
huge documents without memory penalties;

  - register handler functions which are called by the parser during
the processing of the document, handling the document elements or
text.

With an event-based API like SAX the XML document can be fed to the
parser in chunks, and the parsing begins as soon as the parser
receives the first document chunk. LuaExpat reports parsing events
(such as the start and end of elements) directly to the application
through callbacks. The parsing of huge documents can benefit from this
piecemeal operation.

LuaExpat is distributed as a library and a file lom.lua that
implements the 'Lua Object Model'.

More info: https://matthewwild.co.uk/projects/luaexpat/

## Changes in 1.3.0

  - Support for Lua 5.2 (thanks to Tomás Guisasola Gorham)
  - Support for the XmlDecl handler to handle <?xml ... ?> document headers
  - Add parser:getcurrentbytecount() to get the number of bytes of
input corresponding to the current event
  - Add a flag to disable the merging of multiple CharacterData calls
  - Various Makefile improvements (thanks Vadim Misbakh-Soloviov)

## Download

  - Source: https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz
  - Signature: https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz.asc