docs: public static void validate(final String xsdFilename, final InputSource is, final ParserOptions options)
          throws Exception
      {
          final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          final SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
  
          factory.setSchema(schemaFactory.newSchema(new File(xsdFilename)));
          factory.setNamespaceAware(true);
  
          if (options.xIncludeAware())
          {
              factory.setXIncludeAware(true);
              factory.setFeature("http://apache.org/xml/features/xinclude/fixup-base-uris", false);
          }
  
          factory.newDocumentBuilder().parse(is);
      }