Re: Here's how to empower instance document authors to create their own root element
Noah Mendelsohn <[email protected]> Sun, 14 Oct 2012 12:35:19 -0400
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
On 10/14/2012 8:59 AM, Costello, Roger L. wrote: > It is not necessary to declare a root element in your XML Schema. You can empower instance document authors to create their own root element. Right, or you can explicitly declare several root elements, and let your users use any one as a root. If you have: <xs:element name="a">...</xs:element> <xs:element name="b">...</xs:element> <xs:element name="c">...</xs:element> Then in principle <a>, <b>, or <c> can be a root element, and most likely without the need for xsi:type in the instance. Noah