code: public boolean validate(final ValidationMethod method, final String xml, final String fileName, final byte[] data,
              final String rootEleName) {
          return validate(method, xml, fileName, data, rootEleName, (Map<String, byte[]>) null);
      }
docs: Validates some piece of XML to ensure that it is valid.
  
  @param method      The validation method to use during validation.
  @param xml         The XML to be validated.
  @param fileName    The filename of the DTD/Schema data.
  @param data        The DTD/Schema data to be used to validate against.
  @param rootEleName The name of the root XML Element.
  @return True if the XML is valid, otherwise false.