Search in sources :

Example 1 with XmlResourceResolver

use of com.intellij.xml.util.XmlResourceResolver in project intellij-community by JetBrains.

the class ValidateXmlActionHandler method doValidate.

public void doValidate(XmlFile file) {
    myProject = file.getProject();
    myFile = file;
    myXmlResourceResolver = new XmlResourceResolver(myFile, myProject, myErrorReporter);
    myXmlResourceResolver.setStopOnUnDeclaredResource(myErrorReporter.isStopOnUndeclaredResource());
    try {
        try {
            myParser = createParser();
        } catch (Exception e) {
            filterAppException(e);
        }
        if (myParser == null)
            return;
        myErrorReporter.startProcessing();
    } catch (XmlResourceResolver.IgnoredResourceException ignore) {
    } catch (Exception exception) {
        filterAppException(exception);
    }
}
Also used : ParserConfigurationException(javax.xml.parsers.ParserConfigurationException) XmlResourceResolver(com.intellij.xml.util.XmlResourceResolver)

Aggregations

XmlResourceResolver (com.intellij.xml.util.XmlResourceResolver)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1