File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Modifying the value of an attribute" Watch "Modifying the value of an attribute" New topic

Modifying the value of an attribute

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 196
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,
Kartik Lax

Joined: Apr 23, 2006
Posts: 24

Just have a look at the javadoc for the removeAttribute()

What does your DTD/Schema contain ?
[ August 02, 2006: Message edited by: Kartik Lax ]
I agree. Here's the link:
subject: Modifying the value of an attribute
It's not a secret anymore!