src/main/java/org/jboss/loom/utils/XmlUtils.java
public static Document createDoc() throws ParserConfigurationException {
        DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
        domFactory.setIgnoringComments( true );
        DocumentBuilder builder = domFactory.newDocumentBuilder();
        Document doc = builder.getDOMImplementation().createDocument( null, null, null );
        return doc;
    }
/**
     * Creates clean Document used in other classes for working with XML
     *
     * @return clean Document
     * @throws ParserConfigurationException if creation of document fails
     */
Creates clean Document used in other classes for working with XML
@return clean Document
@throws ParserConfigurationException if creation of document fails
Creates clean Document used in other classes for working with XML @return clean Document @throws ParserConfigurationException if creation of document fails
public static Document createDoc() throws ParserConfigurationException {
        DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
        domFactory.setIgnoringComments( true );
        DocumentBuilder builder = domFactory.newDocumentBuilder();
        Document doc = builder.getDOMImplementation().createDocument( null, null, null );
        return doc;
    }
public static Document createDoc ( ) throws ParserConfigurationException { DocumentBuilderFactory domFactory = DocumentBuilderFactory . newInstance ( ) ; domFactory . setIgnoringComments ( true ) ; DocumentBuilder builder = domFactory . newDocumentBuilder ( ) ; Document doc = builder . getDOMImplementation ( ) . createDocument ( null , null , null ) ; return doc ; }
Creates clean Document used in other classes for working with XML
 @return clean Document
 @throws ParserConfigurationException if creation of document fails
Creates clean Document used in other classes for working with XML @return clean Document @throws ParserConfigurationException if creation of document fails