half-baked parsers vs binary XML
cowan at locke.ccil.org
Sun Mar 28 07:10:57 BST 1999
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 at ccil.org
e'osai ko sarji la lojban.
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at 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 at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev