Test xml replacement