Skip to content

Commit ecee1da

Browse files
committed
Removes out-of-date version information from source files and obsolete info from README.
1 parent bcce658 commit ecee1da

File tree

7 files changed

+21
-36
lines changed

7 files changed

+21
-36
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ interactive Digital Television (DTV) [Ginga NCL applications](http://gingancl.or
1010

1111
The original parser was written by Paul Chakravarti and is available on [LuaUsers](http://lua-users.org/wiki/LuaXml).
1212

13-
The code (and documentation) is not complete yet, however it is usable and this release is intended to avoid potential duplication between efforts and get early feedback.
14-
15-
The API is relatively stable however there may be some detailed changes.
16-
1713
# Installation
1814
If you clone this repository, you are download all the module source code and can run the examples directly.
1915
However, if you want to use the module inside your own project, the best way is to download it using

XmlParser.lua

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
1-
--- @module Class to parse XML
1+
--- @module Class providing the actual XML parser.
2+
-- Available options are:
3+
-- * stripWS
4+
-- Strip non-significant whitespace (leading/trailing)
5+
-- and do not generate events for empty text elements
6+
--
7+
-- * expandEntities
8+
-- Expand entities (standard entities + single char
9+
-- numeric entities only currently - could be extended
10+
-- at runtime if suitable DTD parser added elements
11+
-- to table (see obj._ENTITIES). May also be possible
12+
-- to expand multibyre entities for UTF-8 only
13+
--
14+
-- * errorHandler
15+
-- Custom error handler function
16+
--
17+
-- NOTE: Boolean options must be set to 'nil' not '0'
218
local XmlParser = {
3-
-- Available options are -
4-
--
5-
-- * stripWS
6-
--
7-
-- Strip non-significant whitespace (leading/trailing)
8-
-- and do not generate events for empty text elements
9-
--
10-
-- * expandEntities
11-
--
12-
-- Expand entities (standard entities + single char
13-
-- numeric entities only currently - could be extended
14-
-- at runtime if suitable DTD parser added elements
15-
-- to table (see obj._ENTITIES). May also be possible
16-
-- to expand multibyre entities for UTF-8 only
17-
--
18-
-- * errorHandler
19-
--
20-
-- Custom error handler function
21-
--
22-
-- NOTE: Boolean options must be set to 'nil' not '0'
2319
options = {},
2420
handler = {},
2521

testxml.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
---Simple command line test parser - applies handler[s] specified
44
-- to XML file (or STDIN) and dumps results<br/>
55
--
6-
-- $Id: testxml.lua,v 1.1.1.1 2001/11/28 06:11:33 paulc Exp $<br/>
7-
--
8-
-- $Log: testxml.lua,v $<br/>
9-
-- Revision 1.1.1.1 2001/11/28 06:11:33 paulc<br/>
10-
-- Initial Import
11-
--
126

137
require("xml2lua")
148
local treeHandler = require("xmlhandler/tree")

xml2lua.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--- @module This module provides a non-validating XML stream parser in Lua.
1+
--- @module Module providing a non-validating XML stream parser in Lua.
22
--
33
-- Features:
44
-- =========
@@ -37,7 +37,6 @@
3737
-- callbacks for each XML element processed (if a suitable handler
3838
-- function is defined). The API is conceptually similar to the
3939
-- SAX API but implemented differently.
40-
--
4140
--
4241
-- XML data is passed to the parser instance through the 'parse'
4342
-- method (Note: must be passed a single string currently)

xmlhandler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ There are currently 3 available handlers:
77
- dom: generates a DOM-like node tree structure with a single ROOT node parent.
88

99
# Usage
10-
To get a handler instance you must call, for instance, `handler = require("xmlhandler/tree")`.
10+
To get a handler instance you must call, for instance, `handler = require("xmlhandler.tree")`.
1111
Then, you have to use one the handler instance when getting an instance of the XML parser using `parser = xml2lua.parser(handler)`.
1212
Notice the module `xml2lua` should have been loaded before using `require("xml2lua")`.
1313
This way, the handler is called internally when the `parser:parse(xml)` function is called.

xmlhandler/dom.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-- _parent = <Parent Node>
99
-- _children = { List of child nodes - ROOT/NODE only }
1010
-- }
11-
-- where PI stands for XML processing instructions
11+
-- where PI stands for XML processing instructions.
1212
--
1313
-- The dom structure is capable of representing any valid XML document
1414
--

xmlhandler/tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
--- @module XML Tree Handler.
3-
-- Generate a lua table from an XML content string.
3+
-- Generates a lua table from an XML content string.
44
-- It is a simplified handler which attempts
55
-- to generate a more 'natural' table based structure which
66
-- supports many common XML formats.

0 commit comments

Comments
 (0)