X-definition
<xd:def xmlns:xd="http://www.xdef.org/xdef/4.2" name="Example" root="Compositions | Person"> <xd:declaration> type amount int(1000, 1000000); type name string(1,99); </xd:declaration> <xd:json name="Compositions"> [ { "%script": "occurs 1..*;", "Name": "name()", "Style": [ "%oneOf", "string()", [ "occurs 2..* string()" ] ] } ] </xd:json> <Person> <Name> name(); </Name> <Salary> amount(); </Salary> </Person> </xd:def>
Input data (may be empty)
[ { "Name": "Beethoven, Symfonie No 5", "Style": "Classic" }, { "Name": "A Day at the Races", "Style": ["jazz", "pop" ] } ]
You can edit
X-definition
or
Input
window