make pages xml compiliant