Program: 23947
Project: 23947
Buggy source:
public void go() throws Exception {
  DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
  factory.setNamespaceAware(false);
  DocumentBuilder builder=factory.newDocumentBuilder();
  Document doc=builder.parse(new FileInputStream(sourceFileName));
  ValueSet vs=new ValueSet();
  vs.setUrl("String_Node_Str");
  Element title=XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str");
  vs.setVersion(title.getAttribute("String_Node_Str"));
  vs.setName(title.getAttribute("String_Node_Str"));
  vs.setImmutable(true);
  Element identifier=XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str");
  vs.setPublisher(identifier.getAttribute("String_Node_Str"));
  vs.addIdentifier(new Identifier().setValue(identifier.getAttribute("String_Node_Str")));
  List<Element> authors=new ArrayList<Element>();
  XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str"),"String_Node_Str",authors);
  for (  Element a : authors)   if (!a.getAttribute("String_Node_Str").contains("String_Node_Str"))   vs.addContact().setName(a.getTextContent());
  vs.setCopyright("String_Node_Str");
  vs.setStatus(ConformanceResourceStatus.ACTIVE);
  vs.setDateElement(new DateTimeType(title.getAttribute("String_Node_Str")));
  vs.getCompose().addInclude().setSystem("String_Node_Str");
  CodeSystem cs=new CodeSystem();
  cs.setUrl("String_Node_Str");
  cs.setVersion(title.getAttribute("String_Node_Str"));
  cs.setName(title.getAttribute("String_Node_Str"));
  identifier=XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str");
  cs.setPublisher(identifier.getAttribute("String_Node_Str"));
  cs.setIdentifier(new Identifier().setValue(identifier.getAttribute("String_Node_Str")));
  authors=new ArrayList<Element>();
  XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str"),"String_Node_Str",authors);
  for (  Element a : authors)   if (!a.getAttribute("String_Node_Str").contains("String_Node_Str"))   cs.addContact().setName(a.getTextContent());
  cs.setCopyright("String_Node_Str");
  cs.setStatus(ConformanceResourceStatus.ACTIVE);
  cs.setDateElement(new DateTimeType(title.getAttribute("String_Node_Str")));
  cs.setValueSet(vs.getUrl());
  Map<String,ConceptDefinitionComponent> concepts=new HashMap<String,ConceptDefinitionComponent>();
  List<Element> classes=new ArrayList<Element>();
  XMLUtil.getNamedChildren(doc.getDocumentElement(),"String_Node_Str",classes);
  for (  Element cls : classes) {
    processClass(cls,concepts,cs);
  }
  XmlParser xml=new XmlParser();
  xml.setOutputStyle(OutputStyle.PRETTY);
  xml.compose(new FileOutputStream(targetFileNameVS),vs);
  xml.compose(new FileOutputStream(targetFileNameCS),cs);
}

Fixed version (ground truth):
public void go() throws Exception {
  DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
  factory.setNamespaceAware(false);
  DocumentBuilder builder=factory.newDocumentBuilder();
  Document doc=builder.parse(new FileInputStream(sourceFileName));
  ValueSet vs=new ValueSet();
  vs.setUrl("String_Node_Str");
  Element title=XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str");
  vs.setVersion(title.getAttribute("String_Node_Str"));
  vs.setName(title.getAttribute("String_Node_Str"));
  vs.setImmutable(true);
  Element identifier=XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str");
  vs.setPublisher(identifier.getAttribute("String_Node_Str"));
  vs.addIdentifier(new Identifier().setValue(identifier.getAttribute("String_Node_Str")));
  List<Element> authors=new ArrayList<Element>();
  XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str"),"String_Node_Str",authors);
  for (  Element a : authors)   if (!a.getAttribute("String_Node_Str").contains("String_Node_Str"))   vs.addContact().setName(a.getTextContent());
  vs.setCopyright("String_Node_Str");
  vs.setStatus(ConformanceResourceStatus.ACTIVE);
  vs.setDateElement(new DateTimeType(title.getAttribute("String_Node_Str")));
  vs.getCompose().addInclude().setSystem("String_Node_Str");
  CodeSystem cs=new CodeSystem();
  cs.setUrl("String_Node_Str");
  cs.setVersion(title.getAttribute("String_Node_Str"));
  cs.setName(title.getAttribute("String_Node_Str"));
  identifier=XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str");
  cs.setPublisher(identifier.getAttribute("String_Node_Str"));
  cs.setIdentifier(new Identifier().setValue(identifier.getAttribute("String_Node_Str")));
  cs.setHierarchyMeaning(CodeSystemHierarchyMeaning.CLASSIFIEDWITH);
  authors=new ArrayList<Element>();
  XMLUtil.getNamedChildren(XMLUtil.getNamedChild(doc.getDocumentElement(),"String_Node_Str"),"String_Node_Str",authors);
  for (  Element a : authors)   if (!a.getAttribute("String_Node_Str").contains("String_Node_Str"))   cs.addContact().setName(a.getTextContent());
  cs.setCopyright("String_Node_Str");
  cs.setStatus(ConformanceResourceStatus.ACTIVE);
  cs.setDateElement(new DateTimeType(title.getAttribute("String_Node_Str")));
  cs.setValueSet(vs.getUrl());
  Map<String,ConceptDefinitionComponent> concepts=new HashMap<String,ConceptDefinitionComponent>();
  List<Element> classes=new ArrayList<Element>();
  XMLUtil.getNamedChildren(doc.getDocumentElement(),"String_Node_Str",classes);
  for (  Element cls : classes) {
    processClass(cls,concepts,cs);
  }
  XmlParser xml=new XmlParser();
  xml.setOutputStyle(OutputStyle.PRETTY);
  xml.compose(new FileOutputStream(targetFileNameVS),vs);
  xml.compose(new FileOutputStream(targetFileNameCS),cs);
}