This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You have committed the common beginner error of assuming that an Element's value is the text in it's only child node. It isn't. Read the API documentation for Node to find out what an Element's value actually is.
And then consider that an Element can have more than one child (as does the <abc> element in your example). If you want to change any of its child nodes (and you do want that) then you will either have to change them, if possible, or create new ones to replace the existing ones.
Joined: May 10, 2010
I resolved it using jdom and inbuilt SAXBuilder class .