This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Modifying the value of an attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Modifying the value of an attribute" Watch "Modifying the value of an attribute" New topic
Author

Modifying the value of an attribute

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 193
Hi all,
How we can change the value of an attribute(delete the attribute then add again with new value) or there is some other way?I have tried using element.removeAttribute("name").But it is not working.Please express your views.

with regards,
ajse
Kartik Lax
Greenhorn

Joined: Apr 23, 2006
Posts: 24
Hi

Just have a look at the javadoc for the removeAttribute() method...here

What does your DTD/Schema contain ?
[ August 02, 2006: Message edited by: Kartik Lax ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Modifying the value of an attribute
 
Similar Threads
How to set Default selection in h:selectOneMenu
Help pls -Urgent(logic:iterate)
Field display problem
event.getValue?
Obtaining data from form elements