posted 18 years ago
Okay....the problem is not with URL passed to a build() method. Actually the
build() method of SAXBuilder class can take a File object, a URL of a File object and as well as a String object containing the File path.
The problem was with the XML file (web.xml) i was trying to load, here is the code snippet:
After I tried to load a new simple XML file, it works fine...code snippet :
Since i am newbie to XML, wondering what's wrong with the web.xml file? Is there any other way to load a XML file in jDOM?