X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fsrc%2Forg%2Fwamblee%2Fxml%2FDomUtils.java;h=05eae128640fa9b70a829a7e7c33814e379ca891;hb=9a7549ba39d26974b00d99569819c1239f080049;hp=3718debf782529b075591a141813cd6e83162d98;hpb=84ee8100bf707a5b90a305f086ae2f2679bac580;p=utils diff --git a/support/src/org/wamblee/xml/DomUtils.java b/support/src/org/wamblee/xml/DomUtils.java index 3718debf..05eae128 100644 --- a/support/src/org/wamblee/xml/DomUtils.java +++ b/support/src/org/wamblee/xml/DomUtils.java @@ -30,6 +30,8 @@ import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.apache.xml.serialize.OutputFormat; import org.apache.xml.serialize.XMLSerializer; import org.dom4j.DocumentException; @@ -49,6 +51,8 @@ import org.xml.sax.SAXException; */ public final class DomUtils { + private static final Log LOG = LogFactory.getLog(DomUtils.class); + /** * Disabled default constructor. * @@ -149,7 +153,7 @@ public final class DomUtils { for (int i = 0; i < attributes.getLength(); i++) { Attr attribute = (Attr) attributes.item(i); if (uniqueAttributes.containsKey(attribute.getNodeName())) { - System.out.println("Detected duplicate attribute '" + LOG.info("Detected duplicate attribute (will be removed)'" + attribute.getNodeName() + "'"); } uniqueAttributes.put(attribute.getNodeName(), attribute);