Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / April 2005

Tip: Looking for answers? Try searching our database.

Problem validating w3c XML Schema Module with XmlValidatingReader

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Bridge - 25 Apr 2005 18:47 GMT
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(new StreamReader(testfile.OpenRead()));
   XmlValidatingReader vreader = new XmlValidatingReader(reader);        
   vreader.ValidationType=System.Xml.ValidationType.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.Schema.XmlSchemaException : 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
Mike Bridge - 25 Apr 2005 22:19 GMT
Hi-

One additional bit of information: according to the definition of the "public" attribute, it has to conform to ISO-8879.
As far as I can tell, "-//W3C//NOTATION XML 1.0: CDATA//EN" is a valid value.  Could this be a bug in the validator?  Or
is there something else going on here?

Thanks,

-Mike

>Hi-
>
[quoted text clipped - 24 lines]
>
>-Mike
Zafar Abbas [MSFT] - 26 Apr 2005 18:34 GMT
This is an issue with the schema validator in .net 1.1, which is fixed in
.net framework v2.0 beta2.

Thanks.

> Hi-
>
[quoted text clipped - 24 lines]
>
> -Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.