attribute namespace "" or null or both

Aleksander Slominski <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
hi,

looking on some problems that XmlPull API users have reported
i think that it will be beneficial that in case when namespaces are enabled
we allow both empty string ("") and null as namespace when retrieving
value of attribute that has no namespace 

those two would be equivalent: if namespaces are enabled:
  getAttributeValue ("", name)
  getAttributeValue (null, name)
and if namespaces are disabled
  getAttributeValue ("", name) will throw IllegalArgumentException
  getAttributeValue (null, name) works OK

comments?

thanks,

alek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.