Hi-
I've created an XHTML extension module which validates correctly using the W3C online schema validator, but fails when
I use the .net 1.1 validator. It seems to be choking on an included W3C file:
http://www.w3.org/MarkUp/SCHEMA/xhtml-notations-1.xsd
The problem seems to be on this line:
<xs:notation name="cdata" public="-//W3C//NOTATION XML 1.0: CDATA//EN" />
My code does something like this:
XmlTextReader reader = new XmlTextReader(n ew StreamReader(te stfile.OpenRead ()));
XmlValidatingRe ader vreader = new XmlValidatingRe ader(reader);
vreader.Validat ionType=System. Xml.ValidationT ype.Schema;
vreader.Schemas .Add("http://www.w3.org/1999/xhtml", "http://localhost/TestModule.xsd" );
The exception (thrown at the last line) is this:
System.Xml.Sche ma.XmlSchemaExc eption : Public attribute '-//W3C//NOTATION XML 1.0: CDATA//EN' is invalid URI. An
error occurred at
http://www.w3.org/MarkUp/SCHEMA/xhtml-notations-1.xsd, (31, 4).
Any idea on what might cause that?
Thanks,
-Mike