Writes data into XML structures.
eOk if data was successfully written; otherwise, the method returns an appropriate error code.