try {
reader.require(XMLStreamConstants.START_ELEMENT, Edm.NAMESPACE_M_2007_08, FormatXml.M_INLINE);
//
ContentType cType = ContentType.parse(type);
if (cType == null) {
throw new EntityProviderException(EntityProviderException.INVALID_INLINE_CONTENT.addContent("xml data"));
}
EdmMultiplicity navigationMultiplicity = navigationProperty.getMultiplicity();
switch (navigationMultiplicity) {
case MANY:
validateFeedTags(reader, cType);
isFeed = true;
break;
case ONE:
case ZERO_TO_ONE:
validateEntryTags(reader, cType);
break;
}
} catch (XMLStreamException e) {
throw new EntityProviderException(EntityProviderException.INVALID_INLINE_CONTENT.addContent("xml data"), e);
}
return isFeed;
}