Is it okay to have xml circular references?

madtrax

New Member
I'm creating an XML schema which keeps track of information regarding the source/origins of a file.I would like to set up a child-parent structure like my below example so I don't have to keep track of relationships on linear list of meta elements.Is this okay? Is there any reason this would not be recommended?, If not, what's the right way?XML Structure\[code\]<meta> <!-- root --><info/> <sources> <source> <meta> <!-- circular reference --> <info/> <sources> <source> <meta>...</meta> <!-- circular reference --> </source> </sources> </meta> </source> <source> <meta> <!-- circular reference --> <info/> <sources> <source> <meta>...</meta> <!-- circular reference --> </source> </sources> </meta> </source> </sources></meta>\[/code\]
 
Back
Top