W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2003

Re: XML result set schema validation

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 18 Jun 2003 10:38:30 +0100
To: Tony Opatha <tonyopatha@yahoo.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5b7k7j7mjt.fsf@erasmus.inf.ed.ac.uk>

Tony Opatha <tonyopatha@yahoo.com> writes:

> I am trying to design a XML schema for a SOAP message body.
> I need to design the XML schema for a document that may need
> to be initialized with a XML fragment that may vary with
> different levels of details.

If I've understood you correctly, your best bet is xsi:nil -- this
allows you to validate an empty element even though the schema
requires it to have content.

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Wednesday, 18 June 2003 05:38:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC