View Single Post
Old 01-15-2013, 02:52 PM   PM User | #8
tronman
New to the CF scene

 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
tronman is an unknown quantity at this point
Hi,

Thanks very much for the questions and tips. In answer to 1), yes there will be non-animal sports too, hence the need for this layer.

I've also implemented your suggestions. Please can you have a look below and let me know if this looks correct?

The big fix seemed to be grouping each event within its own tag. I added an ID to each as a unique identifier - is this the best way?

Code:
<sport>

<animals>

<event id="1">
<name>Dogs v Cats</name>
<date>12/12/2013</date>
<links>
<link type="red">http://www.link1.com</link>
<link type="blue">http://www.link2.com</link>
<link type="red">http://www.link3.com</link>
</links>
</event>

<event id="1">
<name>Birds v Ferrets</name>
<date>11/12/2013</date>
<links>
<link type="red">http://www.link4.com</link>
<link type="red">http://www.link5.com</link>
<link type="blue">http://www.link6.com</link>
</links>
</event>


</animals>

</sport>
tronman is offline   Reply With Quote