Sponsored Link •
Wouldn't it be nice if there existed a standard for XML when you don't need the whole thing? I propose a strict subset of XML called XML minus minus (XML--).
Often in my work, I find XML would be very handy, (e.g. configuration files, data serialization, etc.), but that I only need a fraction of the specification. In these cases it doesn't make sense to embed a gargantuan industrial strength XML parser in my code, so I usually use a homegrown partial XML parser.
Inventing a brand new markup language is one possibility I have explored (such as Labelled S-Expressions), but to be honest I don't think the idea will take off. Many markups exist, and people prefer things that are already well-known (and well marketed) such as XML.
I want to propose a specification for a strict subset of XML called XML--. The specification is the same as that for XML 1.0 (third edition) but with the following restrictions:
<mytag attribute_name="attribute_value"/>can be rewritten trivially as:
<mytag> <attribute_name>attribute_value</attribute_name> </mytag>
|Christopher Diggins is a software developer and freelance writer. Christopher loves programming, but is eternally frustrated by the shortcomings of modern programming languages. As would any reasonable person in his shoes, he decided to quit his day job to write his own ( www.heron-language.com ). Christopher is the co-author of the C++ Cookbook from O'Reilly. Christopher can be reached through his home page at www.cdiggins.com.|