W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2005

Self reference in XML schema?

From: Yang Feng <yfeng@entry.com>
Date: Tue, 11 Jan 2005 16:39:21 -0500
Message-ID: <C4B3048A45903D44BA840FC1BE8BB7BD21C7B0@inside.entry.com>
To: <xmlschema-dev@w3.org>
Hi there,


I am new to XML schema. I wonder if I can use self reference in XML
schema. In my XML data, the EMPLOYEE element contains MANAGER element.
MANAGER is also an EMPLOYEE. How can I use XML schema to define this
relationship without repeating the same code for EMPLOYEE and MANAGER

Is there any sample code? The XML have the following structure:



            <ID />

            <name />


                        <ID />

                        <name />




Thanks in advance.


Received on Wednesday, 12 January 2005 01:18:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC