From d26b9da2f2dd7f7057851d6b0888981e3d85d941 Mon Sep 17 00:00:00 2001 From: Gavin Kistner Date: Thu, 7 Nov 2013 10:11:14 -0700 Subject: [PATCH] Release version 0.5.2 --- README.md | 10 +++++++++- slaxml.lua | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 75a4f4f..2f28fc3 100644 --- a/README.md +++ b/README.md @@ -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. @@ -132,6 +132,7 @@ In this case no table will have a `parent` attribute, elements will not have the but no `closeElement()` calls - `` invokes `startElement("foo")` followed by `closeElement("bar")` + - ` 5 < 6 ` is seen as valid text contents - No support for custom entity expansion other than the standard XML entities (`< > " ' &`) and numeric ASCII entities (e.g. ` `) @@ -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 + `` now directly generates `startElement("foo","bar")` with no post callback for `namespace` required. diff --git a/slaxml.lua b/slaxml.lua index cef659e..9462e9e 100644 --- a/slaxml.lua +++ b/slaxml.lua @@ -1,9 +1,9 @@ --[=====================================================================[ -v0.5.1 Copyright © 2013 Gavin Kistner ; MIT Licensed +v0.5.2 Copyright © 2013 Gavin Kistner ; 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("",target,content))