Reads data from a xml element.
eOk if the data was successfully read; otherwise, the method returns an appropriate error code.