public void load(String xml, String mapping) throws SAXException, ParserConfigurationException, IOException { XMLValidator.validate(xml, false); TagMap loader = new TagMap(); loader.load(mapping, actionMap, targetMap, attributeMaps); getParser(false).parse(xml, new Parser(actionMap, targetMap, attributeMaps)); }
public void load(File xml, File mapping) throws SAXException, ParserConfigurationException, IOException { System.out.println("Loading " + xml.getPath() + " with " + mapping.getPath()); XMLValidator.validate(xml, false); TagMap loader = new TagMap(); loader.load(mapping, actionMap, targetMap, attributeMaps); getParser(false).parse(xml, new Parser(actionMap, targetMap, attributeMaps)); { } // System.out.println("---------------------------------------------------------------------------------------"); }