updated xml validation