W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2001

Global Elements and root element

From: KK Aw <kkaw@multicentric.com>
Date: Fri, 06 Jul 2001 17:11:20 +0800
To: xmlschema-dev@w3.org
Message-id: <NEBBJINGMLDJJBLDEPPOMENACGAA.kkaw@multicentric.com>
Article 2.2.2 of XML Schema Part 0 Primer states:

"The declaration of a global element also enables the element to appear at
the top-level of an instance document.  Hence purchaseOrder, which is
declared as a global element in po.xsd, can appear as the top-level element
in po.xml.  Note that this rationale will also allow a comment element to
appear as the top-level element ina a document like po.xml."

This being the case, how do we programatically determine which should be the
root element of the instance document or do we make it a choice for the

Received on Friday, 6 July 2001 05:37:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC