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

@param reader
the xml reader
@return the DOM document
Creates a DOM from a file representation of an xml record @param reader the xml reader @return the DOM document
public static Document parseDom(Reader reader) {
        try {
            DocumentBuilder builder = factory.newDocumentBuilder();
            return builder.parse(new org.xml.sax.InputSource(reader));
        } catch (Exception e) {
            throw new RuntimeException("Could not parse DOM for '" + reader.toString() + "'!", e);
        }
    }
public static Document parseDom ( Reader reader ) { try { DocumentBuilder builder = factory . newDocumentBuilder ( ) ; return builder . parse ( new org . xml . sax . InputSource ( reader ) ) ; } catch ( Exception e ) { throw new RuntimeException ( "Could not parse DOM for '" + reader . toString ( ) + "'!" , e ) ; } }
Creates a DOM from a file representation of an xml record
Creates a DOM from a file representation of an xml record