Trying to prove a schema works, by breaking it..

Afternoon folks,

I have written a schema
(http://eildon.ucs.ed.ac.uk:1964/Zblsa/zblsa.xsd) to define data (of
which http://eildon.ucs.ed.ac.uk:1964/zblsa.return.4.xml is an example)

This setup passes the W3C validator (version 20010502, at
http://www.w3.org/2001/03/webdata/xsv), however I want to extend my
[shakey] grasp of schemas by the method of test-by-breaking - whereby I
include extra elements, or incorrectly composed elements, and confirm
the results are what I predict.

My problem is that I can add a new element (not defined in the schema),
or miss out a required element - and it still passes.

Can anyone explain why adding an undefined element does not break my
schema? or why missing a required chunk of data passes the validator
test?

Many thanks
-- 

--==++
Ian (slightly confused) Stuart
I build things: computer programs (with code); or cars (with metal)

Received on Wednesday, 19 September 2001 11:57:51 UTC