public boolean checkCompliance()

in modules/core/src/main/java/org/apache/savan/filters/XPathBasedFilter.java [45:58]


    public boolean checkCompliance(OMElement element) throws SavanException {

        if (XPathString == null)
            return true;

        try {
            AXIOMXPath xpath = new AXIOMXPath(XPathString);
            List resultList = xpath.selectNodes(element);

            return resultList.size() > 0;
        } catch (JaxenException e) {
            throw new SavanException(e);
        }
    }