[jdom-interest] How to reassign the content of an element
Norrman Per
per.norrman at canovia.se
Thu Oct 10 01:40:34 PDT 2002
Hi,
assuming form_id is a String:
elm.getChild("form_id").setText(...);
if not, build a list of Text, Comments, Elements and
elm.getChild("form_id").setContent(list);
/pmn
-----Original Message-----
From: emmettwa at onebox.com
To: jdom-interest at jdom.org
Sent: 2002-10-10 01:46
Subject: [jdom-interest] How to reassign the content of an element
Hi,
If I create an element such as elm below ...
How to I reassign the value of action after the fact ?
Execute this ....
Element elm = new Element("form");
elm.addContent( new Element("form_id").addContent(form_id) );
elm.addContent( new Element("action").addContent(action) );
Now how do I reassign the content of "form_id" in elm?
--
Emmett McLean
emmettwa at onebox.com - email
(866) 841-9139 x1160 - voicemail/fax
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
rhost.com
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/
More information about the jdom-interest
mailing list