[jdom-interest] Element.setAttribute Undefined?

John L. Webber - Jentro AG John.Webber at jentro.com
Tue May 28 07:36:32 PDT 2002


Can it be you have an older version of JDOM in your classpath (like
jre/lib/ext)?

"Adams, Dick W" wrote:
> 
> The following fragment won't compile:
> 
>         org.jdom.Element error = new Element("err");
>         error.setAttribute("type", type)           ;
> 
> The compiler says the method setAttribute(java.lang.String,
> java.lang.String) is not defined for org.jdom.Element. However, the javadoc
> indicates this method IS defined (unless I'm totally blind). I don't this
> problem mentioned anywhere in the archives.
> 
> Environment:
> 
> *       JDOM: Beta 8 jdom.jar, dated 28 Mar 2002
> *       Compiler: Eclipse 2.0
> 
> Anyone know what's wrong here?
> 
> Dick Adams
> Software Engineer, Sprint PCS
> 6550 Sprint Parkway, 2C122
> Overland Park, KS
> (913) 794-4760
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
---------------------------------------------------------
 Jentro AG
 John L. Webber, Software Development
---------------------------------------------------------
 Peter-Henlein-Strasse 28, 85540 Haar/Munich, Germany
 Tel. +49 89 462 385 0     mailto:John.Webber at jentro.com 
 Fax  +49 89 462 385 29    http://www.jentro.com
---------------------------------------------------------



More information about the jdom-interest mailing list