Examples of PruneElementFilter


Examples of net.sourceforge.cruisecontrol.util.PruneElementFilter

    Element getElement(File xmlFile) {
        try {
            SAXBuilder builder =
                new SAXBuilder("org.apache.xerces.parsers.SAXParser");
            if (removeProperties) {
                builder.setXMLFilter(new PruneElementFilter("properties"));
            }
            return builder.build(xmlFile).getRootElement();
        } catch (JDOMException e) {
            LOG.warn("Could not read log: " + xmlFile + ".  Skipping...", e);
        } catch (IOException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.