aspose file tools
The moose likes XML and Related Technologies and the fly likes XML Schema Substitution Group Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML Schema Substitution Group" Watch "XML Schema Substitution Group" New topic
Author

XML Schema Substitution Group

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi,

Can anybody please explain what are ***Substitution Groups*** in XML Schema with a simple example as this concept is little bit fuzzy for me.


Thanks.


RR Kumaran
SCJP 1.4
Gernot Greimler
Greenhorn

Joined: Sep 08, 2005
Posts: 6
Just checked the official explanation ( http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/#SubsGroups )and if i get this right, then substitution groups are used for recurring optional elements.

But if that is true - why not simply create a complexType with optional fields and attach it? (Just guessing arround and trying to understand aswell - no expert here )
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: XML Schema Substitution Group
 
Similar Threads
XSchema
Howto validate xml schema?
Schema question...
free plugin for XML, XSD,...
XML to Java