handler.addType("import-package", HashMap.class);
handler.addType("export-package", HashMap.class);
handler.setDefaultType(String.class);
br = new BufferedReader(new InputStreamReader(is));
KXmlSAXParser parser;
parser = new KXmlSAXParser(br);
try
{
parser.parseXML(handler);
}
catch (Exception ex)
{
System.err.println("Failed to parse '"+url+"': "+ex.getMessage());
ex.printStackTrace();