Replace the old value with the new value

anniew

New Member
I need to get the old and new values from one xml file and replace the replace the old values with the new one.In below xml file , i have described the old and new values.This is separate xml file.I have saved this as Mapping.xml.\[code\]<column name="Student"> <list oldValue="http://stackoverflow.com/questions/10608833/John" newValue="http://stackoverflow.com/questions/10608833/Edward"></list> <list oldValue="http://stackoverflow.com/questions/10608833/John" newValue="http://stackoverflow.com/questions/10608833/Jeff"></list> <list oldValue="http://stackoverflow.com/questions/10608833/John" newValue="http://stackoverflow.com/questions/10608833/Saunders"></list></column>\[/code\]Below one is my input xml . Here i have to replace the old value with new ones from Mapping.xml.\[code\]<Class> <name firstname="John"> <score>30</score> </name> </Class>\[/code\]Output should look like this:\[code\]<Class> <name firstname="Edward"> <score>30</score> </name> </Class><Class> <name firstname="Jeff"> <score>30</score> </name> </Class><Class> <name firstname="Saunders"> <score>30</score> </name> </Class>\[/code\]and finally i have to save the output as new xml file. Can anyone help me with this?
 
Back
Top