Xml validating reader c
In this article, I'll show you how to write a reusable XML-validation class you can use to validate XML documents against DTDs as well as XDR and XSD schemas. NET application that requires XML document-validation capabilities.
Once you do that, the code can be simplified: first Name= (string) node.
Here is a cut-down example: , I am first calling a method that will verify the XML is well formatted and not null(not posting this code). If your main goal is to verify the document structure, you may try using an XSD.