Object value = helper.getValue(o, features[i]); if (value == null) { return null; } else { EDataType d = (EDataType) features[i].getEType(); EPackage ePackage = d.getEPackage(); EFactory fac = ePackage.getEFactoryInstance(); String svalue = helper.convertToString(fac, d, value); if (escape != null) { svalue = escape.convert(svalue); } return svalue; }
return getDatatypeValue(helper.getValue(o, features[i]), features[i]);
  protected String getContent(EObject o, EStructuralFeature[] features)  {    if (map == null)    {      return null;    }    for (int i = 0; i < features.length; i++)    {      XMLResource.XMLInfo info = map.getInfo(features[i]);      if (info != null && info.getXMLRepresentation() == XMLResource.XMLInfo.CONTENT)      {        Object value = helper.getValue(o, features[i]);        if (value == null)        {          return null;        }        else        {          EDataType d = (EDataType) features[i].getEType();          EPackage ePackage = d.getEPackage();          EFactory fac = ePackage.getEFactoryInstance();          String svalue = helper.convertToString(fac, d, value);                   if (escape != null)          {            svalue = escape.convert(svalue);          }          return svalue;        }      }    }    return null;  }