refactoring of xml references