fix tag-name errors in xml generators and revalidate final xml