return xml;
}
public static String replaceNameInPathOrQuery(String pathOrQuery, String oldName, String newName) throws Exception {
Tokenizer t = new Tokenizer();
t.tokenize(pathOrQuery, 0, -1, 1);
StringBuffer result = new StringBuffer();
int lastIx = 0;
while (t.currentToken != Token.EOF) {
if (t.currentToken == Token.NAME && t.currentTokenValue.equals(oldName)) {