added some XML syntax checking