[jdom-interest] Jdom & Xpath error in IDE

Anand, Rajesh Rajesh_Anand at ml.com
Tue Jun 14 02:02:30 PDT 2005

Hi Folks,

	Here is my code snippet.

	import org.jdom.Element;
	import org.jdom.xpath.XPath;
	import org.w3c.dom.Document;
	import org.xml.sax.SAXException;
	try {
		Document doc = parseXmlFile(args[2], false);
				XPath xpath =
				Element ele = (Element)
				if(ele != null){
				GetIndexService pf = new
				pf.url = new URL(s);
			catch (MalformedURLException e) {
				System.err.println(args[0] + "is not a
URL I understand")  ;
			catch (JDOMException e){

	The problem is that the IDE complains that "JDOM exception
cannot be resolved".

	However, if I remove the JDOMException , then the IDE complains
- "Unhandled exception type JDOM".

	Can someone please help.

	Thanks in advance.

Rajesh Anand
Tel: + (44) (0) 207 996 1152
Mob: + (44) (0) 7947273151
Email:Rajesh_anand at ml.com

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail.     http://www.ml.com/email_terms/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050614/104cd84d/attachment.htm

More information about the jdom-interest mailing list