Handles MI_Metadata elements returned from CSW XML records, rather than
returning None and causing an error later. Raises an exception
when neither MD_Metadata nor MI_Metadata are found. Also sets encoding
argument to 'unicode' rather than unicode (type), so that Python 3 does
not break.
Handles MI_Metadata elements returned from CSW XML records, rather than returning None and causing an error later. Raises an exception when neither MD_Metadata nor MI_Metadata are found. Also sets encoding argument to 'unicode' rather than unicode (type), so that Python 3 does not break.