data-aggregation-lab-core/src/main/java/inescid/util/XmlUtil.java
/**
     * Creates a DOM from a file representation of an xml record
     * 
     * @param doc
     *            the xml file
     * @return the DOM document
     */
Creates a DOM from a file representation of an xml record

@param doc
the xml file
@return the DOM document
Creates a DOM from a file representation of an xml record @param doc the xml file @return the DOM document
public static Document parseDomFromFile(File doc) {
    	FileInputStream reader;
        try {
            reader = new FileInputStream(doc);
        } catch (FileNotFoundException e) {
            throw new RuntimeException("Could not open file '" + doc.getName() + "'!", e);
        }
        return parseDom(reader);
    }
public static Document parseDomFromFile ( File doc ) { FileInputStream reader ; try { reader = new FileInputStream ( doc ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( "Could not open file '" + doc . getName ( ) + "'!" , e ) ; } return parseDom ( reader ) ; }
Creates a DOM from a file representation of an xml record
Creates a DOM from a file representation of an xml record
//            reader = new FileReader(doc);