/** * Entity point to our test. Simple read some XML which should * generate an object tree. * * @param argv The arguments passed into the test * @throws SlickXMLException Indicates a failure to parse XML or generate objects */ public static void main(String[] argv) throws SlickXMLException { ObjectTreeParser parser = new ObjectTreeParser("org.newdawn.slick.tests.xml"); parser.addElementMapping("Bag", ItemContainer.class); GameData parsedData = (GameData) parser.parse("testdata/objxmltest.xml"); parsedData.dump(""); }