Multiple choice technology programming languages

You have a .xml file, and the corresponding .xsd. Which class should you use to validate the xml against the corresponding schema file?

  1. XmlValidatingReader

  2. XmlDictionaryReader

  3. XmlReader

  4. XmlSchemaReader

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

XmlReader provides the core functionality for reading XML documents, while XmlValidatingReader specifically validates against schemas. XmlReader alone can validate when used with schema validation enabled, making it the correct choice for XML-schema validation in .NET.