rule = new ProcessingInstructionRule();
rule = new XmlSchemaRule();
    public void configure(Configuration configuration) throws ConfigurationException    {        name = configuration.getAttribute("name");        Configuration[] ruleConfs = configuration.getChildren();        for (int i = 0; i < ruleConfs.length; i++)        {            SourceTypeRule rule;            if (ruleConfs[i].getName().equals("document-declaration"))                rule = new DocDeclRule();            else if (ruleConfs[i].getName().equals("processing-instruction"))                rule = new ProcessingInstructionRule();            else if (ruleConfs[i].getName().equals("w3c-xml-schema"))                rule = new ProcessingInstructionRule();            else if (ruleConfs[i].getName().equals("document-element"))                rule = new DocumentElementRule();            else                throw new ConfigurationException("Unsupported element " + ruleConfs[i].getName() + " at "                        + ruleConfs[i].getLocation());            rule.configure(ruleConfs[i]);            rules.add(rule);        }    }