Complete XML library interface
Merge branch 'xml_writing_library' into develop