For all dummys like me, here is the correct way to solve the problem
above:

call _serializer.setPrefix("", NAMESPACE);
where NAMESPACE := the default namespace of your xml

then call
_serializer.startTag(NAMESPACE, "test");
...
_serializer.endTag(NAMESPACE, "test");

"null" is not needed anymore and yet it results in an "plain" xml.

Thanks!





On 20 Feb., 13:27, Sky <skysoftwaredes...@googlemail.com> wrote:
> Hi,
>
> to come back to a way of solution. Does anyone know how to solve the
> described problem?
> Is the only way to write a new XMLWriter without XML Serializer?
>
> Thanks!
>
> On 15 Feb., 23:06, Sky <skysoftwaredes...@googlemail.com> wrote:
>
> > Hi,
>
> > I do not want to write my XML Serialization new. its complex, and time
> > is expensive. And currently it works perfectly on all Android Versions
> > < 2.3. I think things should not be downgraded from one to another
> > release, except something gets deprecated. Its like Street of Boston
> > said its a regression.
> > And besides: How to write plain XML with Serializer now with the
> > changes from above? It is not possible anymore? Can we only write XML
> > with Namespaces now? This should be documented somewhere...
>
> > On 15 Feb., 22:38, Kostya Vasilyev <kmans...@gmail.com> wrote:
>
> > > Could you write the XML file yourself, just with "print" type statements?
>
> > > Not as convenient as using a serializer, and probably not as pretty
> > > (indents, attributes and stuff), but if it's meant as input for another
> > > program, it probably doesn't have to be perfect, right?
>
> > > -- Kostya
>
> > > 13.02.2011 23:22, Sky пишет:
>
> > > > Yes, this is exactly what I want to do. Write old plain XML without
> > > > Namespace.
> > > > The question is how I get it to work on Andorid 2.3?
>
> > > > On 13 Feb., 21:04, Streets Of Boston<flyingdutc...@gmail.com>  wrote:
> > > >> I think it was mainly meant for XML documents that don't use 
> > > >> namespaces at
> > > >> all, since there is no startTag(String elementName) method.
>
> > > >> And i think you can leave it null if it implicitly takes on the 
> > > >> namespace of
> > > >> its parent-element.
>
> > > >> Whether the acceptance of null for this parameter is OK or not, if 
> > > >> it's not
> > > >> working in 2.3.3 but working as documented in 2.2 and earlier, it is a
> > > >> regression.
>
> > > --
> > > Kostya Vasilyev --http://kmansoft.wordpress.com
>
>

-- 
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

Reply via email to