if (!contents.isEmpty())
{
EObject eObject = contents.get(0);
if (eObject instanceof XMLTypeDocumentRoot)
{
XMLTypeDocumentRoot documentRoot = (XMLTypeDocumentRoot)eObject;
EList<EObject> rootContents = documentRoot.eContents();
String rootElementName = null;
String rootElementNamespace = null;
if (!rootContents.isEmpty())
{
EObject root = rootContents.get(0);