SAX: org.xml.sax.AttributeMap

Peter Murray-Rust peter at
Wed Feb 25 09:20:45 GMT 1998

At 09:42 25/02/98 +0700, James Clark wrote:
>>     public abstract String getType (int index);
>I like this.
So do I. As XML grows larger and acquires more extensions (XLL, XSL, etc.)
there will be an increasing number of 'hardcoded' attribute types and
values. For example, the type of HREF/href is effectively determined as
CDATA (it would be perverse to make it ID, for example, even if not in
xml-link context) and xml:lang is required (I think) to be NMTOKEN or
NMTOKENS. Hardcoding all these 'special cases' is a pain and SAX (or DOM)
can help with implementing the prose in the specs.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS, Virtual Hyperglossary

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list