script for xml check