Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

RE: [jdom-interest] Problems in adding an element

Mahesh Trikannad

2005-01-10

Replies:

Which method is it complaining about

>From: "Aggarwal, Sushil" <sushil.aggarwal@FMR.COM>
>To: <jdom-interest@jdom.org>
>Subject: [jdom-interest] Problems in adding an element
>Date: Mon, 10 Jan 2005 05:58:53 -0500
>
>Hi,
> Element objRoot = new Element("Request");
> Document objDocument = new Document(objRoot);
>
> Element objRequestType = new Element("Request_Type");
>
> objRequestType.setText("DEFAULT");
> objRoot.addContent(objRequestType);
>
> This code gives me a runtime error on the JSP page with the new
>JDOM api i.e. 1.0
> Error 500 : Incompatible argument to method
> Kindly provide what I am doing wrong or missing?
>
>
>Thanks & Regards,
>Sushil Aggarwal
>
>
>Any comments or statements made in this email are not necessarily those
>of Fidelity Business Services India Pvt. Ltd. or any of the Fidelity
>Investments group companies. The information transmitted is intended
>only for the person or entity to which it is addressed and may contain
>confidential and/or privileged material. If you have received this in
>error, please contact the sender and delete the material from any
>computer. All e-mails sent from or to Fidelity Business Services India
>Pvt. Ltd. may be subject to our monitoring procedures.
>
>
>_______________________________________________
>To control your jdom-interest membership:
>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.