Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Novice Developer Errors: "Non-whitespace characters are not allowed" and IE BG image

From: cmsmcq@---.--- (-. -. ----------------)
To: 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/


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