wiki: improve XML handling