You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ If you just want to see if it will parse your document correctly, you can simply
53
53
54
54
If you simply want to build tables from your XML, you can alternatively:
55
55
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
57
57
local doc = SLAXML:dom(myxml)
58
58
59
59
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
132
132
but no `closeElement()` calls
133
133
-`<foo></bar>` invokes `startElement("foo")`
134
134
followed by `closeElement("bar")`
135
+
-`<foo> 5 < 6 </foo>` is seen as valid text contents
135
136
- No support for custom entity expansion other than the standard XML
136
137
entities (`< > " ' &`) and numeric ASCII entities
137
138
(e.g. ` `)
@@ -145,6 +146,13 @@ In this case no table will have a `parent` attribute, elements will not have the
145
146
146
147
## History
147
148
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
+
148
156
### v0.5.1 2013-Feb-18
149
157
+`<foo xmlns="bar">` now directly generates `startElement("foo","bar")`
0 commit comments