Lets say I have an XML format similar to the following:
<Random> <...Some arbitrary amount of nesting here...> <Random2> <Definition> <Name>Ape</Name> <Description>A mammal</Description> </Definition> </Random2> <Random2> <Definition> <Name>Ape</Name> <Description>A mammal</Description> </Definition> </Random2> <...More Random2 here, end of nesting.../> </Random>
Is there a general standard approach to support reuse of the definitions in this type of scenario?
In a xml schema or DTD you can define and id and and idref attribute. This allows you to create it with an id the first time you use it and reference the later values.