Two Laptop Bag*
The moose likes XML and Related Technologies and the fly likes outside reference uisng choice tag in XML Schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "outside reference uisng choice tag in XML Schema " Watch "outside reference uisng choice tag in XML Schema " New topic
Author

outside reference uisng choice tag in XML Schema

Ralph Ching
Greenhorn

Joined: Jul 18, 2006
Posts: 15
hello fellow ranchers,

is it possible to use a reference to the other file using choice tag in XML schema?

for example:

<xs:choice>
<!-- this element has a definition inside the current xsd file -->
<xs:element name="student" type="studentType"/>

<!-- This element is in another xsd file named "Teacher.xsd"-->
<xs:element name="teacher" type="teacherType"/>
</xs:choice>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: outside reference uisng choice tag in XML Schema