Xml Write API