Extracted methods in OData::Entity to simplify OData::Entity.from_xml.