SAX2: Namespace proposal

Stefan Haustein stefan.haustein at
Mon Dec 20 20:48:36 GMT 1999

> I'm not sure that this approach buys us much, in the end.  You'd need
> something like this:
>   public class AttributeList
>   {
>     public int getLength ();
>     public NamespaceContext getNamespaceContext (int i);
>     public String getLocalName (int i);
>     public String getType (int i);
>     public String getValue (int i);
>     public String getType (NamespaceContext c, String localName);
>     public String getValue (NamespaceContext c, String localName);
>   }

I would further propose that the AttributeList "knows" the
NamespaceContext of the corresponding element and provides 
two additional methods defaulting to the NamespaceContext
of the element:

   public String getType (String localName);
   public String getValue (String localName);

Best regards

KJAVA AWT project:
SAX-based access to WBXML and WML:

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe 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