Re: XmlSerialzier
Stefan Haustein <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Organization | Univ. Dortmund FB 4 LS 8 |
| Message-ID | <[email protected]> |
(...) > therefore we never return 'null' for namespace in XmlPullParser > but empty string. > > so i think that in XmlSerializer we should have similiar approach: > * prefix and namespace must be always not null for setPrefix() > * and getPrefix() will return null only when The problem are prefixes, not namespaces: In the parser, null is returned for "no prefix" (see javadoc). In the serializer, null would be returned from getPrefix for "no prefix defined", and an empty string would be returned for namespace is default (no prefix in elements required). This seems a bit inconsistent, but it would be fine with me... Best, Stefan