java replace all xml decoding

Java
String prefixedString = xmlString.replaceAll("<(?![/?])", "<mb:");
Source

Also in Java: