XML Got It Wrong (was Re: [jdom-interest] getMixedContent -> getContent)

guru at stinky.com guru at stinky.com
Thu Jun 28 16:44:49 PDT 2001

On Wed, Jun 27, 2001 at 10:13:27PM -0400, Amy Lewis wrote:
> This is one of those places where I think the infoset and various
> specifications just got it wrong.

I agree.  IMHO, the XML spec started to go wrong as soon as they added
attributes.  :-)

Actually, I take that back: XML started to go wrong as soon as they
added close-tags.  Requiring the name of the open-tag to be inside the
close-tag as well precluded a context-free grammar.

Other things wrong with XML: DTDs, Namespaces (the implementation, not
the idea, which was fine, but what would have been the problem with

<?namespace name="foo" uri="http://www.foo.com/foo/"?>

instead of mangling the definition of attributes *and* embedding a
value inside the name *and* overloading the colon token with

<bar xmlns:foo="http://www.foo.com/foo/">

), and so forth.

 - Alex "I'll rant until they change the spec!" Chaffee

Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

More information about the jdom-interest mailing list