Originally posted by Parama guru:
U need to do the following steps
1.Parse the xml file using a parser like SAX,DOM,JAXP etc., and store in a Document(api) object.
2.Search the particular element u want to modify.
3.Again store the modified Document into an XML file.
This is the process to be followed to do your task..The name of APIs differ with respect to the parser, u are going to use.