I testet the java.xml.XMLConstants.NULL_NS_URi: private static final String NAMESPACE = XMLConstants.NULL_NS_URI; _serializer.setPrefix("", NAMESPACE); _serializer.startTag(NAMESPACE, "gpx");
Now there is the following error. How would you handle tha? (For clarification I want to write a xml with no namespace. For example <test>example</test>) IllegalStateException: Cannot set default namespace for elements in no namespace at org.kxml2.io.KXmlSerializer.startTag(KxmlSerializer.Java 405) .... I think something is not correct in the Android 2.3 Version... I wonder why I am the only one who has this problem... On 13 Feb., 06:09, Streets Of Boston <flyingdutc...@gmail.com> wrote: > The documentation of the *startTag* method mentions this: > "... If namespace is null no namespace prefix is printed but just name..." > > Regardless of the XML starndard, this means that null is a valid and > documented input for this method. If this has suddenly become broken in 2.3 > (i haven't seen this problem, though), then that's a regression of the > method and a bug. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en