SAX2: Namespace proposal

Stefan Haustein stefan.haustein at trantor.de
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

Stefan
-- 
KJAVA AWT project: www.trantor.de/kawt
SAX-based access to WBXML and WML: www.trantor.de/wbxml

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 unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list