lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, May 18, 2015 at 2:15 PM, Jay Carlson <nop@nop.com> wrote:
> On 2015-05-18, at 11:36 AM, Tim Channon <tc@gpsl.net> wrote:
>
>> * not allowed self closing tags are not illegal by XML rules and here there is erratic usage of named or self closing for the same tags within one file. eg. both <text> </text> and <text> />
>
> I think everybody should use a fully-conforming parser like expat, or something that uses like expat, while getting started on XML.
>
> expat delivers an open event and a close event for every tag. Empty tags in XML can be written two different but equivalent ways.
>
> expat does not distinguish character data expressed as CDATA encoding, just as it does not distinguish &# references.
>
> expat signals an error on character set issues.
>
> These all reflect the XML Infoset, which is the only data guaranteed to be communicated between parties using XML.
>
> I should probably implement lazykit in modern Lua one of these decades….
>
> Jay

This is explicitly counter to the stated goal of round-tripping the document.

/s/ Adam