chaining serializer calls

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

when i was using XmlSerializer i have realized it would be very handy to
be able to chain serialization calls by returning this XmlSerializer instance
from all void serialization calls, ex:

 ser.startTag("", "foo");
 ser.text("test");
 ser.endTag("", "foo");

would could be written as:

 ser.startTag("", "foo").text("test").endTag("", "foo");

what do you think about it?

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.