I have the following xml fragment as a string:
String str ="<xs:user>userName</xs:user><xs:password>userPassword</xs:password>
<xs:address>addressString</xs:address>";
What would be the best way to replace userPassword with xxxxxxx?
Edit: xs (namespace) can vary.