/**
* Parse the project.xml formatted file and fill in the nodes found
*/
public void parse() throws NodeFileParserException {
final ResourceXMLParser resourceXMLParser;
if(null!=file){
resourceXMLParser=new ResourceXMLParser(file);
}else{
resourceXMLParser = new ResourceXMLParser(input);
}
//parse both node and settings
resourceXMLParser.setReceiver(this);
// long start = System.currentTimeMillis();
try {
resourceXMLParser.parse();
} catch (ResourceXMLParserException e) {
throw new NodeFileParserException(e);
} catch (IOException e) {
throw new NodeFileParserException(e);
}