writing XML

Hi,



I'm trying to write XML file but using XML writer (Generic) seems to be disconcerting for me (simple but also very limited) and I can't find clear documentation and examples.

How do you manage to write XML ?

If anybody would shared his protocol, that could be very useful.  Thanks !

Christophe