How about using Element.setName()?

James
----- Original Message -----
Sent: Thursday, June 06, 2002 12:18 PM
Subject: [dom4j-user] Renaming an Element

Dear All

 

I have a large hierarchy of Elements and I need to change the name of an element near the top of the tree.

 

Can anyone suggest the best way of doing this?

 

I am unable to re create the descendant elements so is it a case of copying the tree below and attaching it to the new Element…sounds very processing intensive.

 

Any help gratefully received

 

Thanks

 

Andrew Rendle

 

+44 (0) 117 962 8131

+44 (0) 7973 878 454 (m)

+44 (0) 117 976 1743 (f)

 

NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and delete all copies of the original message.

 

 

Reply via email to