This class implements Xml Reader and conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.
Xml Text Reader provides the following functionality: Because the Xml Text Reader does not perform the extra checks required for data validation, it provides a fast well-formedness parser.
To perform data validation, use a validating Xml Reader.
To read XML data from an Xml Document, use Xml Node Reader.
In validating against your xml/xsd I get of errors different than yours; I think this can help you continue(add/remove xml elements) from here: Errors may also try the reverse process; try generating the schema from your xml and compare with your actual xsd - see the difference; and the easiest way to do that is to use generate schema using VS IDE.
Following is how you'd do that: Create XSD from XML this helps.
Now when it try input abc I get the output 1233 I want to get till 123 how can i do this?????????For example, the reported node type may be different than the actual node type of the current node.Encodes and decodes XML names, and provides methods for converting between common language runtime types and XML Schema definition language (XSD) types.XML Validator Buddy provides several unique functionalities as XML validator and editor.Check and edit huge (multiple GB) XML instance files but don't load them completely into memory.Validate extension method, I would use an Xml Reader which can be configured to process an inline schema via Xml Reader Settings. The first answer worked for me, except that it lacked error handling here: // Parsing the file will cause the validation to occur. Read()) ; Some errors (like having the start of an XML element but nothing else) are not caught.