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