[Mono-list] XmlSchemaXmlSchema error when validating XML

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Tue Jul 12 19:16:17 EDT 2011


Hello,

Since I cannot get XML and SCHEMA my answer can only be "it *could* be" :P

And even if there is a bug, you won't get any bugfixes for 1.9.x. It is 
way too old. Try 2.10.x or git HEAD instead.

Atsushi Eno

(2011/07/11 4:41), dabeat wrote:
> Hi,
>
> When I try to validate an XML against an XSD in mono1.9.1 for Linux, I get
> next error:
>
> XmlSchemaXmlSchema error: Specified value was invalid against the facets.
>
>
> I have no problem when I execute it within VisualStudio 2010 or mono1.9.1
> for Windows.
> My application is coded in C# and the code is:
>
> try
>              {
>                  doc = new XmlDocument();
>                  doc.LoadXml(XML);
>
>                  doc.Schemas = new XmlSchemaSet();
>
>                  doc.Schemas.Add("http://test.org", SCHEMA);
>                  doc.Validate(new
> ValidationEventHandler(ValidationEventHandler));
>              }
>              catch (Exception e)
>              {
>
>                  throw new Exception(e.Message);
>              }
>
>
> Could it be a bug of the mono version for Linux?
>
>
> Thanks in advanced,
> David
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/XmlSchemaXmlSchema-error-when-validating-XML-tp3659306p3659306.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>



More information about the Mono-list mailing list