code: public String translate(final Reader cobolReader,
              final String targetNamespace, final String xsltFileName)
              throws XsdGenerationException {
          try {
              if (_log.isDebugEnabled()) {
                  _log.debug("Translating with options: {}", getConfig()
                          .toString());
                  _log.debug("Target namespace: {}", targetNamespace);
              }
              return xsdToString(emitXsd(toModel(cobolReader), targetNamespace),
                      xsltFileName);
          } catch (RecognizerException e) {
              throw new XsdGenerationException(e);
          }
      }
docs: Execute the translation from COBOL to XML Schema.
  
  @param cobolReader reads the raw COBOL source
  @param targetNamespace the generated XML schema target namespace (null
  for no namespace)
  @param xsltFileName an optional xslt to apply on the XML Schema
  @return the XML Schema
  @throws XsdGenerationException if XML schema generation process fails