println("Could not open " + fileName);
return;
}
reader = new FileInputStream(f);
XmlHandler handler =
new XmlHandler(new JMeterNameSpaceHandler());
XMLReader parser = JMeterUtils.getXMLParser();
parser.setContentHandler(handler);
parser.setErrorHandler(handler);
parser.parse(new InputSource(reader));
ListedHashTree tree = handler.getDataTree();
println("Created the tree successfully");
NonGuiTree ngt = new NonGuiTree();
ngt.addSubTree(tree, null);
TestPlan tp = (TestPlan)ngt.compileComponent(ngt.getChildAt(0));