![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Empty choice in a group ? >Thread Next - XSV results discrepancy (web vs installation) Self reference in XML schema?To: <xmlschema-dev@--.---> Date: 1/11/2005 11:39:00 AM 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
elements?
Is there any sample code? The XML have the following structure:
<EMPLOYEE>
<ID />
<name />
<MANAGER>
<ID />
<name />
</MANAGER>
</EMPLOYEE>
Thanks in advance.
Yolande
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
