[Yanel-dev] Handling of XML Serialization

basZero baszero at gmail.com
Fri Oct 22 15:19:28 CEST 2010


Dear all,

having worked with Yanel for some weeks now, I noticed that very often
people still deal with Document objects, append children, deal with
namespaces and have to care about inheritance by themselves.

In some cases it might be much more convenient to use something like this
framework:
http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#sta=
rt

Instead of dealing with actual XML nodes you deal with your data objects
only.

Write: With the current version of Yanel, one could use this already when
persisting XML (you only tell Yarep to add a new node and then you directly
write into that outputstream, this write procedure can be taken over from
the framework above (factory: store object).

Read: Yarep returns nodes. So the framework's factory can be used to create
your data objects by simply passing the inputstream of the node and you are
done.

This is just an idea how to get rid of dealing with XML as such and would
eliminate a lot of boilerplate code in your projects. Maybe the Yanel staff
can take a look at this and think about possible usage of this.

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010102=
2/a3b889b1/attachment.htm


More information about the Yanel-development mailing list