OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: half-baked parsers vs binary XML

[ Lists Home | Date Index | Thread Index ]
  • From: John Cowan <cowan@locke.ccil.org>
  • To: david@megginson.com
  • Date: Sun, 28 Mar 1999 01:16:48 -0500 (EST)

David Megginson scripsit:

> At least when I was maintaining it, AElfred didn't perform all of the
> required well-formedness checks for different ranges of Unicode
> characters allowed and not allowed in names, attribute values,
> character data, etc.  I tried adding it, but it bloated the code by
> about 7-8K (much more than parsing the prolog and DTD).

According to the corrigenda, attribute values and character data
can now contain anything except (hex) 0000-0008, 000B-000C, 000E-001F,
(ASCII controls), D800-DFFF (surrogates), and FFFE-FFFF (non-characters).
Everything else should be allowed.

There are some rules in Appendix B of XML that allow you to leverage
the methods in Character.  When I get a chance, i"ll write some Java
code that correctly recognizes XML name and name-start characters.
The big tables are already in the java.lang.Character class.

John Cowan					cowan@ccil.org
		e'osai ko sarji la lojban.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS