simpleTreeHandler attempts to generate a more 'natural' table based structure which supports many common XML formats and is generally more useful (there are some restrictions dealing with mixed content however)Īnother pure-Lua non-validating SAX-like streaming processor.domHandler generates a DOM-like node tree structure and is capable of representing any valid XML document.The distribution also includes sample event handlers to convertthe SAX event stream into a Lua table. Shallow well-formedness checking only (fails to detect most semantic errors).Flexible whitespace handling (selectable).Provides limited well-formedness checking (checks for basic syntax & balanced tags only).Parses/generates events all XML elements - ie. Tokenises well-formed XML (relatively robustly).The module implements a non-validating XML stream parser with a handler based event API (conceptually similar to SAX) which can be used to post-process the event data as required (eg into a tree). is an updated version that works for Lua 5.0 to 5.3.It was based on by Paul Chakravarti. LuaBasicTagParser ? Works with lua 5.1 up to Lua 5.4 It will use LuaExpat ? if available,otherwise falls back on a pure Lua parser based on Roberto's (see below). PenlightLibraries provides an XML module which uses the LOMdefined by LuaExpat ? and provides pretty-printing, template matching and Orbit-style 'htmlfication'. Its primary purpose is to provokediscussion of XML tools in Lua. LazyKit is a collection of XML processing tools. modules for handling XML-based protocols such as XML-RPC and SOAP.Ĭredit to the authors is mentioned where appropriate.XML parsers which contain C code and a binding.The following is some sample code for handling XML.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |