Program: 93266
Project: 93266
Buggy source:
public static List<TranslateArrayResponse> parseTranslateArrayResponse(InputStream xml){
  List<TranslateArrayResponse> result=new ArrayList<TranslateArrayResponse>();
  try {
    XMLInputFactory inputFactory=XMLInputFactory.newInstance();
    XMLEventReader eventReader=inputFactory.createXMLEventReader(xml);
    TranslateArrayResponse translateArrayResponse=null;
    while (eventReader.hasNext()) {
      XMLEvent event=eventReader.nextEvent();
      if (event.isStartElement()) {
        StartElement startElement=event.asStartElement();
        if (startElement.getName().getLocalPart().equals(TranslateArrayResponse)) {
          translateArrayResponse=new TranslateArrayResponse();
        }
        if (event.isStartElement()) {
          if (event.asStartElement().getName().getLocalPart().equals(From)) {
            event=eventReader.nextEvent();
            translateArrayResponse.setFrom(event.asCharacters().getData());
            continue;
          }
        }
        if (event.asStartElement().getName().getLocalPart().equals(TranslatedText)) {
          event=eventReader.nextEvent();
          translateArrayResponse.setTranslatedText(event.asCharacters().getData());
          continue;
        }
      }
      if (event.isEndElement()) {
        EndElement endElement=event.asEndElement();
        if (endElement.getName().getLocalPart().equals(TranslateArrayResponse)) {
          result.add(translateArrayResponse);
        }
      }
    }
  }
 catch (  XMLStreamException e) {
    e.printStackTrace();
  }
  return result;
}

Fixed version (ground truth):
public static List<TranslateArrayResponse> parseTranslateArrayResponse(String xml){
  InputStream stream=new ByteArrayInputStream(xml.getBytes(Charset.forName("String_Node_Str")));
  List<TranslateArrayResponse> result=new ArrayList<TranslateArrayResponse>();
  try {
    XMLInputFactory inputFactory=XMLInputFactory.newInstance();
    XMLEventReader eventReader=inputFactory.createXMLEventReader(stream);
    TranslateArrayResponse translateArrayResponse=null;
    while (eventReader.hasNext()) {
      XMLEvent event=eventReader.nextEvent();
      if (event.isStartElement()) {
        StartElement startElement=event.asStartElement();
        if (startElement.getName().getLocalPart().equals(TranslateArrayResponse)) {
          translateArrayResponse=new TranslateArrayResponse();
        }
        if (event.isStartElement()) {
          if (event.asStartElement().getName().getLocalPart().equals(From)) {
            event=eventReader.nextEvent();
            translateArrayResponse.setFrom(event.asCharacters().getData());
            continue;
          }
        }
        if (event.asStartElement().getName().getLocalPart().equals(TranslatedText)) {
          event=eventReader.nextEvent();
          translateArrayResponse.setTranslatedText(event.asCharacters().getData());
          continue;
        }
      }
      if (event.isEndElement()) {
        EndElement endElement=event.asEndElement();
        if (endElement.getName().getLocalPart().equals(TranslateArrayResponse)) {
          result.add(translateArrayResponse);
        }
      }
    }
  }
 catch (  XMLStreamException e) {
    e.printStackTrace();
  }
  return result;
}