This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi friends, This is Palash from India says hello to u all. In between days i am doing on XML & java. i have some problem... can u tell me How can i add an Atttribute to my existing XML file... i am able to read values from XML file but not able to modify or add. please reply if possible... Palash HYDERABAD,INDIA
hi palash, am also new in XML. Okay i guess DOM provides a way to insert an attribute. So read in ur xml document using a dom parser. org.w3c.dom.Element interface has a setAttribute()/ setAttributeNode() methods for the same. SO i guess u can add one when u encounter the element of your choice. I hope Ajit/map/ someone w'd correct me if i'm wrong. rgds karthik.
"palash", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.