[Home] [By Thread] [By Date] [Recent Entries]

  • From: Stefan Haustein <stefan.haustein@t...>
  • To: "xml-dev@i..." <xml-dev@i...>
  • 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@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member