Xmlvalidatingreader class obsolete
However, I would have thought that Xml Validating Reader would follow the W3C recommendation? Many thanks -- Phil Hobgen Southampton, UK Interesting, recently someone run into the problem with \w including the "_" in some regular expression languages in programming languages/libraries (e.g. NET framework Regex class) but not in the XSD schema regular expression language.
I seem to have come across this several times in the past week or two, so it’s worth making a note. If you catch an Xml Schema Exception you first use the C# as operator to cast the reader to an IXml Line Info (just to be safe – in an exception handler you might not be sure where the reader came from), check for null, and then if you have an interface call Has Line Info to see if you got far enough along in the reading to have any line information.
I think this is probably a result of the fact that in the Unicode recommendation it says that "\w" should allow underscores because of its common use in programming languages. Could someone tell me, if I change to use dot Net v2.0 will this behave in the way recommended by the W3C or is the behaviour the same as in dot Net v1.1? Validation error message "Error: The 'value' element is invalid - The value 'abc_de' is invalid according to its datatype 'String' - The Pattern constraint failed.. NET 2.0 \w in a pattern follows the W3C XSD schema specification (at least as far as not including "_" in \w). FAQTs.com/ Interesting, recently someone run into the problem with \w including the "_" in some regular expression languages in programming languages/libraries (e.g. NET framework Regex class) but not in the XSD schema regular expression language.
Xml Validating Reader' is obsolete: 'Use Xml Reader created by Xml Reader.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.
Passed the name of an XML file as a command-line argument, the program validates the file against the DTD or schema information contained or referenced in the file.
If the validation is successful, a message to that effect is displayed.
The "\w" construct should allow all characters except the set of "punctuation", "separator" and "other" characters.