Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Novice Developer Errors: "Non-whitespace characters are not allowed" and IE BG image [Thread Next] Re: Novice Developer Errors: "Non-whitespace characters are not allowed" and IE BG imageTo: NULL Date: 2/4/2009 2:28:00 PM Bouton Jones <circularfile13@g...> writes: > MY FIRST PROBLEM: I've created a valid XML file and DTD file but I'm > having trouble with my Schema file. The files are at > http://www.boutonjones.com/xml/booklist_s.xml and > http://www.boutonjones.com/xml/booklist_s.xsd respectively. The XML > file displays fine in my various browsers but I get error messages > when I try to validate it through the Validome and Schneegans's > validators. (Please see > http://www.validome.org/grammar/validate/?lang=en&grammarTyp=SCHEMA&url=http://www.boutonjones.com/xml/booklist_s.xml > and > http://schneegans.de/sv/?url=http%3A%2F%2Fwww.boutonjones.com%2Fxml%2Fbooklist_s.xml&schema=(Detect+automatically)&encoding=(Detect+automatically)&htmlcomp=(Detect+automatically) > ) > For the time being I am focusing on the Validome results. It > generates 47 variations of this message: "Non-whitespace characters > are not allowed in schema elements other than 'xs:appinfo' and > 'xs:documentation', but ... was found." The validome site seems to be checking the document against the schema for schema documents; that is, it seems to believe you have asked it to check a schema document for conformance to the rules of the XSD spec. That would be, probably, because you have invoked its validator for DTDs and XSD schema documents. If you want validation of a normal XML instance against a schema, try http://www.validome.org/xml/validate/?lang=en&url=http://www.boutonjones.com/xml/booklist_s.xml It's not a hard mistake to make (and my analysis may be wrong). But the mention of xs:appinfo and xs:documentation in the error message, as elements expected by the validator, is a tipoff. I hope this helps. -- C. M. Sperberg-McQueen Black Mesa Technologies http://www.blackmesatech.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
