Re: [google-appengine] Accessing xml files in war directory

2010-06-01 Thread Ikai L (Google)
I'm able to parse XML doing this: File dir = new File("WEB-INF/catalog"); File[] files = dir.listFiles(); for(File file : files) { if(file.isFile() && file.getName().endsWith(".xml")) { parseCatalogXml(file); } } The files are in my WEB-INF/catalog folder. On M

[google-appengine] Accessing xml files in war directory

2010-06-01 Thread mark
Hello I am running this code server side and it is working fine in Development mode, buy when I push it to the app engine it is coming back null. DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse("test.xml"); d