[Mono-list] XmlSchemaXmlSchema error when validating XML

dabeat oldskiffle at yahoo.es
Mon Jul 11 07:41:39 EDT 2011


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.


More information about the Mono-list mailing list