if(classXDFNodeName != null && classXDFNodeName.equals(sXDFStructureNodeName) ) { writeOut(outputstream, "<!DOCTYPE " + XMLDeclAttribs.get("rootName") + " SYSTEM \""
if(classXDFNodeName != null && classXDFNodeName.equals(Specification.getInstance().getXDFStructureNodeName()) ) { writeOut(outputstream, "<!DOCTYPE " + XMLDeclAttribs.get("rootName") + " SYSTEM \""
  private void writeXMLDeclToOutputStream ( OutputStream outputstream,                                            Hashtable XMLDeclAttribs                                          )  {    // initial statement    writeOut(outputstream, "<?xml");    writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\"");    // print attributes    Enumeration keys = XMLDeclAttribs.keys();    while ( keys.hasMoreElements() )    {      String attribName = (String) keys.nextElement();      if (attribName.equals("version") ) {          Log.errorln("XMLDeclAttrib hash has version attribute, not allowed and ignoring.");      } else if ( attribName.equals("dtdName") || attribName.equals("rootName") ) {          // skip over it      } else          writeOut(outputstream, " " + attribName + "=\"" + XMLDeclAttribs.get(attribName) + "\"");    }    writeOut(outputstream, " ?>");    if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE);    // Print the DOCTYPE DECL only if right info exists    if (XMLDeclAttribs.containsKey("rootName")        && XMLDeclAttribs.containsKey("dtdName"))    {        // print the DOCTYPE DECL IF its a structure node        if(classXDFNodeName != null && classXDFNodeName.equals(sXDFStructureNodeName) ) {            writeOut(outputstream, "<!DOCTYPE " + XMLDeclAttribs.get("rootName") + " SYSTEM \""                                    + XMLDeclAttribs.get("dtdName") + "\">");        }      if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE);    } else       Log.errorln("Passed XMLDeclAttributes table lacks either dtdName, rootName entries, ignoring DOCTYPE line printout");   }