Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Question about validating schema with xml file

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 7/2/2008 7:32:00 PM

jh3an wrote:
> Error message differs:
> from http://www.xmlme.com/Validator.aspx :
> Schema Error: System.Xml.Schema.XmlSchemaException: Expected schema
> root. Make sure the root element is and the namespace is 'http://
> www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-
> com:xml-data' for an XDR schema. at
> System.Xml.Schema.XmlSchemaCollection.SendValidationEvent(XmlSchemaException
> e) at System.Xml.Schema.XmlSchemaCollection.Add(String ns, XmlReader
> reader, XmlResolver resolver) at
> System.Xml.Schema.XmlSchemaCollection.Add(String ns, XmlReader reader)
> at Validator.Button1_Click(Object sender, EventArgs e)

That sounds as if you have presented the wrong file as the schema.


> from http://tools.decisionsoft.com/schemaValidate/ :
> Well Formed: VALID
> Schema Validation: INVALID
> 
> The following errors were found:
> TYPE LOC MESSAGE
> Warning  3, 44 SchemaLocation: schemaLocation value = 'test.xsd' must
> have even number of URI's.

That is what I told you, the schemaLocation is a list of pairs of the 
namespace URI and the schema URL.

> Validation  4, 9 cvc-complex-type.2.4.a: Invalid content was found
> starting with element 'number'. One of '{"":number}' is expected.

Yes, your schema needs elementFormDefault="qualified", as I already told 
you.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent