Figure 2. Adding a New Attribute Causes Validation Failure.
Using the XmlNodeReader object to validate XML data gives you a way to perform runtime validation on XML data. This can be useful when the XML data is modified in memory.