This discussion is archived
2 Replies Latest reply: Feb 17, 2010 2:50 PM by 843789 RSS

How to modify an XML values using XSLT and Java

843789 Newbie
Currently Being Moderated
Hi Friends,
I wish to modify a simple xml to another xml using XSLT, please let me know what are the things i need to know to convert the XML to another XML.
If somebody can give a sample code, it will be great...

I wish to do the following sample conversion of XML
<?xml version="1.0" encoding="ISO-8859-1" ?> 
<ROOT>
<NAME>TEST1</NAME>
</ROOT>
so that the results look like below....
<?xml version="1.0" encoding="ISO-8859-1" ?> 
<ROOT>
<NAME>TEST2</NAME>
</ROOT>
Notice TEST1 is replaced with TEST2 in the 2nd XML, I wish to get that result...please help.

Thanks and Regards,
JG