So, there is no standard way, because just put it, because there is no way to serialize pointers and the like. It will always be application specific.
However, you can create your own class and serialize as you want.
As for the xml parsers, have you tried this ? It is extremely simple, effective and easy to learn. I basically did everything with this. You can even request a commercial license.
source share