Skip to content

Commit d26b9da

Browse files
committed
Release version 0.5.2
1 parent 45f045d commit d26b9da

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If you just want to see if it will parse your document correctly, you can simply
5353

5454
If you simply want to build tables from your XML, you can alternatively:
5555

56-
local SLAXML = require 'slaxdom' -- requires the slaxml.lua file; make sure you copy it also
56+
local SLAXML = require 'slaxdom' -- also requires slaxml.lua; be sure to copy both files
5757
local doc = SLAXML:dom(myxml)
5858

5959
The returned table is a 'document' comprised of tables for elements, attributes, text nodes, comments, and processing instructions. See the following documentation for what each supports.
@@ -132,6 +132,7 @@ In this case no table will have a `parent` attribute, elements will not have the
132132
but no `closeElement()` calls
133133
- `<foo></bar>` invokes `startElement("foo")`
134134
followed by `closeElement("bar")`
135+
- `<foo> 5 < 6 </foo>` is seen as valid text contents
135136
- No support for custom entity expansion other than the standard XML
136137
entities (`&lt; &gt; &quot; &apos; &amp;`) and numeric ASCII entities
137138
(e.g. `&#10;`)
@@ -145,6 +146,13 @@ In this case no table will have a `parent` attribute, elements will not have the
145146

146147
## History
147148

149+
### v0.5.2 2013-Nov-7
150+
+ Lua 5.2 compatible
151+
+ Parser now errors if it finishes without finding a root element,
152+
or if there are unclosed elements at the end.
153+
(Proper element pairing is not enforced by the parser, but is—as
154+
in previous releases—enforced by the DOM builder.)
155+
148156
### v0.5.1 2013-Feb-18
149157
+ `<foo xmlns="bar">` now directly generates `startElement("foo","bar")`
150158
with no post callback for `namespace` required.

slaxml.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--[=====================================================================[
2-
v0.5.1 Copyright © 2013 Gavin Kistner <[email protected]>; MIT Licensed
2+
v0.5.2 Copyright © 2013 Gavin Kistner <[email protected]>; MIT Licensed
33
See http://github.com/Phrogz/SLAXML for details.
44
--]=====================================================================]
55
local SLAXML = {
6-
VERSION = "0.5.1",
6+
VERSION = "0.5.2",
77
_call = {
88
pi = function(target,content)
99
print(string.format("<?%s %s?>",target,content))

0 commit comments

Comments
 (0)