public static org . w3c . dom . Element convert ( org . jdom2 . Element node ) throws JDOMException { if ( node == null ) return null ; // Convert null->null try { DOMOutputter outputter = new DOMOutputter ( ) ; return outputter . output ( node ) ; } catch ( JDOMException e ) { throw new RuntimeException ( "Error converting JDOM to DOM: " + e . getMessage ( ) , e ) ; } }
Convert a JDOM Element to a DOM Element