03-28-2012 12:25 PM
I have a xml file and want to know how to read it using your api. The file is in my plugin folder
03-29-2012 01:16 PM
You should put it in the config/ directory.
Then you can use Environment.getConfig() to get that path from your code. Then use standard XML file reading mechanisms.
Or use URL url = context.getRuntimeContext().getResource("config/your-file.xml") and read the XML from that URL.
03-29-2012 01:16 PM
You should put it in the config/ directory.
Then you can use Environment.getConfig() to get that path from your code. Then use standard XML file reading mechanisms.
Or use URL url = context.getRuntimeContext().getResource("config/your-file.xml") and read the XML from that URL.