private Element getXHELMRootElement ( String resource ) throws JDOMException , IOException { ByteArrayInputStream stream = new ByteArrayInputStream ( resource . getBytes ( ) ) ; SAXBuilder builder = new SAXBuilder ( ) ; Document doc = builder . build ( stream ) ; return doc . getRootElement ( ) ; }
method to get the XHELMRootElement of a document as a string