How is inclusion used to associate information?

The GJXDM provides three basic ways of associating two pieces of information: inclusion, referencing, and relationships. Inclusion means, in the XML sense, that one piece of information is contained within another. Inclusion is one of the fundamental building blocks of GJXDM and is used throughout the data model. It is implemented in GJXDM by an element simply being included in a sequence within a complex type. For example, the j:PersonType structure in GJXDM contains an element called j:PersonBirthLocation, which represents the place where someone was born. Linking the person to that place can be accomplished by inclusion, i.e., by including the j:PersonBirthLocation element (which is of j:LocationType) within the j:Person element, like this:

 

<j:Person>

<j:PersonBirthLocation>

<j:LocationAddress>

<j:LocationCityName>Boston</j:LocationCityName>

<j:LocationStateCode.USPostalService>MA

</j:LocationStateCode.USPostalService>

</j:LocationAddress>

</j:PersonBirthLocation>

</j:Person>