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