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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: SAX2: Namespace proposal

[ Lists Home | Date Index | Thread Index ]
  • From: Stefan Haustein <stefan.haustein@trantor.de>
  • To: "xml-dev@ic.ac.uk" <xml-dev@ic.ac.uk>
  • Date: Mon, 20 Dec 1999 21:48:39 +0100

> 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@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@ic.ac.uk the following message;
unsubscribe 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