Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Substitution Group
Substitution Group [message #597969] Tue, 18 April 2006 11:21
tatini venkate is currently offline tatini venkateFriend
Messages: 19
Registered: July 2009
Junior Member

I have a schema file which has 'persons' as root element.
'persons' has 'person' as child element which has 'Name' as child element.

I declared another element called 'FirstName' which can be substituted to
element 'Name'

Now I need to identify what are all the elements can be substuted in place
of element 'Name'.

In the above example I can use 'FirstName' instede of 'Name' in my XML doc.

Is there any way to get substitution list from XSD parser ?.

Here I am attaching sample schema and XML docs.



<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs=""
xmlns="" targetNamespace=""
<xs:element name="person" >
<xs:element ref="Name"/>
<xs:element name="persons">
<xs:element ref="person" maxOccurs="40" />
<xs:element name="Name" type="xs:string"/>
<xs:element name="FirstName" type="xs:string" SubstitutionGroup="Name"/>


<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U
<persons xmlns=""
Previous Topic:Good place to start?
Next Topic:Substitution Group
Goto Forum:

Current Time: Fri Nov 27 02:48:10 GMT 2015

Powered by FUDForum. Page generated in 0.03165 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software