263264265266267268269270271272
SAXBuilder builder = new SAXBuilder(); try { Document doc = builder.build(f); return doc; } catch (JDOMException e) { throw new ParseException(e); } catch (IOException e) { throw new ParseException(e); } }
154155156157158159160161162163
SAXBuilder builder = new SAXBuilder(); try { Document doc = builder.build(file); return doc; } catch (JDOMException e) { throw new ParseException(e); } catch (IOException e) { throw new ParseException(e); } }
166167168169170171172173174175
SAXBuilder builder = new SAXBuilder(); try { Document doc = builder.build(new InputSource(new StringReader(s))); return doc; } catch (JDOMException e) { throw new ParseException(e); } catch (IOException e) { throw new ParseException(e); } }