Somewhere 😉 on this site is a post regarding how to validate against an XML… Read the postHOWTO: Validate XML content against an XML Schema