public static void execute(String arg) {

        try {
            WellWriten(arg);

            File f3 = new File(arg);
            if (find(f3, "<!DOCTYPE") && find(f3, "SYSTEM") && find(f3, ".dtd")) {

                DTDValidate(arg);

            } else {

                File f1 = new File("DtdError.txt");
                f1.delete();
                f1.createNewFile();

            }

            if (find(f3, "xsi:noNamespaceSchemaLocation")) {

                XSDValidate(arg);

            } else {

                File f2 = new File("XsdError.txt");
                f2.delete();
                f2.createNewFile();

            }

        } catch (ParserConfigurationException ex) {
            // Logger.getLogger(XmlValidator.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SAXException ex) {
            // Logger.getLogger(XmlValidator.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            //Logger.getLogger(XmlValidator.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Error ex) {
        }

    }