X-definition
Specify name of model to create
:
If you have more X-definitions in a collection specify the name of root X-definition
:
<xd:def xmlns:xd="http://www.xdef.org/xdef/4.2" name="Example" root="Town"> <xd:declaration> type NAME string(1, 100); type NUM int(1, 99999); </xd:declaration> <Town Name="NAME;"> <xd:choice> <Street xd:script="occurs *;" Name="required NAME;"> <House xd:script="occurs *; ref House" /> </Street> <House xd:script="occurs *; ref House" /> </xd:choice> </Town> <House Num="required NUM;"> <Person xd:script="occurs *;" FirstName="required NAME;" LastName="required NAME;"/> </House> </xd:def>
XML data
<Town Name="New town"> <Street Name="Short"> <House Num="1"> <Person FirstName="John" LastName="Smith"/> </House> </Street> </Town>
You can edit both,
X-definition
and
XML data
windows