finished RNG/RNC that validate the XML