[jdom-interest] Problems in adding an element
Scott Ellis
scotey at pacbell.net
Mon Jan 10 08:49:01 PST 2005
Problems in adding an elementI'm guessing here, but types Element and Document are not necessarily from JDOM. Both types could come from different libraries, so it depends on what you have in your imports section. My guess is that one of the two are coming from Xalan or Xerces (which ever is applicable), and that you are trying to add a vendor specific Element type to a JDOM document, or vice versa.
----- Original Message -----
From: Aggarwal, Sushil
To: jdom-interest at jdom.org
Sent: Monday, January 10, 2005 2:58 AM
Subject: [jdom-interest] Problems in adding an element
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050110/d22458a1/attachment.htm
More information about the jdom-interest
mailing list