updated xml check