search and replace kind of operations with XML

For a given XML input, I would need to perform 'Search
and Replace' operation on Element/Attribute Tag names
and values. The resultant output is a transformed XML.
Since I would like to change both Tags and Values,
what is the best way to accomplish this? XSLT or
Xpath/XQuery or combination of both?

 OR are there any special apis in XmlBeans to
accomplish this?



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Received on Thursday, 7 February 2008 03:40:09 UTC