Merge pull request #586 from ovatsus/master

Xml Write API