has anyone encountered the same problem as I did:
XmlValidatingReader constructor throws a very "informative" exception with a
message "reader" when given XmlNodeReader or a XmlReader resulting from a
call to XslTransform.Transform.
Any help would be greatly appreciated!
Warmest regards, Gleb Holodov
XmlValidatingReader::XmlValidatingReader( XmlReader reader )
if( !( reader is XmlTextReader ) )
throw new ArgumentException( "reader" );
Such a fraud... So, although it accepts XmlReader, XmlTextReader is
required. That means that no standard XmlReader other than XmlTextReader is
suitable - neither XmlNodeReader nor XslTransform.Transform... Well, this
limitation seems to be strange. I can hardly believe that a DOM and thus
XmlNodeReader lacks on certain information needed for schema validation...
The XmlReader to read from while validating. The current implementation only
Support for other XmlReader subclasses should be added in a future release.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Gleb Holodov" <g...@mail.ru> wrote in message
I was really not attentive enough and didn't mention that comment in SDK.
I'm also glad that XmlNodeReader compatibility will be added in a future
release, since this should imporve performance...