Skip to content

Commit

Permalink
Release version 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrogz committed Nov 7, 2013
1 parent 45f045d commit d26b9da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If you just want to see if it will parse your document correctly, you can simply

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

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

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.
Expand Down Expand Up @@ -132,6 +132,7 @@ In this case no table will have a `parent` attribute, elements will not have the
but no `closeElement()` calls
- `<foo></bar>` invokes `startElement("foo")`
followed by `closeElement("bar")`
- `<foo> 5 < 6 </foo>` is seen as valid text contents
- No support for custom entity expansion other than the standard XML
entities (`&lt; &gt; &quot; &apos; &amp;`) and numeric ASCII entities
(e.g. `&#10;`)
Expand All @@ -145,6 +146,13 @@ In this case no table will have a `parent` attribute, elements will not have the

## History

### v0.5.2 2013-Nov-7
+ Lua 5.2 compatible
+ Parser now errors if it finishes without finding a root element,
or if there are unclosed elements at the end.
(Proper element pairing is not enforced by the parser, but is—as
in previous releases—enforced by the DOM builder.)

### v0.5.1 2013-Feb-18
+ `<foo xmlns="bar">` now directly generates `startElement("foo","bar")`
with no post callback for `namespace` required.
Expand Down
4 changes: 2 additions & 2 deletions slaxml.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
--[=====================================================================[
v0.5.1 Copyright © 2013 Gavin Kistner <[email protected]>; MIT Licensed
v0.5.2 Copyright © 2013 Gavin Kistner <[email protected]>; MIT Licensed
See http://github.com/Phrogz/SLAXML for details.
--]=====================================================================]
local SLAXML = {
VERSION = "0.5.1",
VERSION = "0.5.2",
_call = {
pi = function(target,content)
print(string.format("<?%s %s?>",target,content))
Expand Down

0 comments on commit d26b9da

Please sign in to comment.