private static HelpNode fromXml(InputSource source) throws ParserConfigurationException, SAXException, IOException {
  SAXParserFactory factory=SAXParserFactory.newInstance();
  SAXParser parser=factory.newSAXParser();
  HelpReader reader=new HelpReader();
  parser.parse(source,reader);
  return reader.root;
}

private static HelpNode fromXml ( InputSource source ) throws ParserConfigurationException , SAXException , IOException { SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; SAXParser parser = factory . newSAXParser ( ) ; HelpReader reader = new HelpReader ( ) ; parser . parse ( source , reader ) ; return reader . root ; }
returns a new simulation object from the given input source .
