[Mono-list] Re: Validation of XML

Robert Jordan robertj at gmx.net
Wed Nov 30 17:16:02 EST 2005


>> The problem is that i have a DTD file that it's ok, work fine with
>> xmllint validation program. but my implementation with DTD Validation
>> don't work with mono. I decide to work with XSD validation schema and
>> work fine for me. Now i can validate a xml  against XSD schema file
>> very well with mono.
> 
> 
> Your XML file is invalid.
> 
> Try this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE activityfile SYSTEM "activities.dtd"[]>
> <activityfile>
>   <plan id="1">
> ...
> </activityfile>

... and remove the line

vr.Schemas.Add(string.Empty, args[1]);

from your test.

Robert



More information about the Mono-list mailing list