add xml validation