========================= #16 - Substitution groups ========================= **Code Generation** .. tab:: Schema .. literalinclude:: /../tests/fixtures/defxmlschema/chapter16.xsd :language: xml :lines: 2- .. tab:: Models .. literalinclude:: /../tests/fixtures/defxmlschema/chapter16.py :language: python **Data Binding** .. tab:: Original XML Document .. literalinclude:: /../tests/fixtures/defxmlschema/chapter16.xml :language: xml :lines: 2- .. tab:: xsData XML Output .. literalinclude:: /../tests/fixtures/defxmlschema/chapter16.xsdata.xml :language: xml :lines: 2- .. tab:: xsData JSON Output .. literalinclude:: /../tests/fixtures/defxmlschema/chapter16.json :language: json .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR