public static Document createEmptyDocument ( ) { Document output = null ; try { final DocumentBuilder db = FACTORY . newDocumentBuilder ( ) ; db . setErrorHandler ( new ParserErrorHandler ( ) ) ; output = db . newDocument ( ) ; } catch ( final Exception ex ) { LOGGER . error ( "Problem creating empty XML document." , ex ) ; } return output ; }
Create an empty XML structure .