I've created a filter in my applications default package, and I've also created an xml file in the default package too. I'm trying to load the XML file but I keep getting a message saying the xml file was not found.
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new File("/Configuration.xml"));
Element rootElement = document.getDocumentElement();
I'm obviously not accessing the xml file correctly, but I can't seem to figure it out, can someone tell me where I'm going wrong?