private void parseXMLDocument(boolean silent) {
        // "parser factory" for creating SAX parser
        SAXParserFactory saxFactory = SAXParserFactory.newInstance();
        // Now using the factory to create a SAX parser,which parses the XML
        // file
        try {
            SAXParser saxParser = saxFactory.newSAXParser();
            saxParser.parse(fileNameXML, this);
        } catch (ParserConfigurationException e) {
            e.printStackTrace();
            System.out
                    .println("Something is wrong with the configuration of the parser!");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            System.out.println("Could not find file!");
        } catch (SAXException e) {
            e.printStackTrace();
            if (!silent) {
                Warnings.xmlError();
            }
        } catch (IOException e) {
            e.printStackTrace();
            System.out.println("InputStream cannot be written to or closed!");
        }
    }