Which would be the correct format for this XML data, are they equivalent or are there trade offs between the two?
1.
<sitemap>
<category name="Animals">
<section title="Dogs">
<page url="/pics/greatdane.jpg" title="Great Dane"/>
</section>
</category>
</sitemap>
2.
<sitemap>
<page>
<category>Animals</category>
<section>Dogs</section>
<title>Great Dane</title>
<url>/pics/greatdane.jpg</url>
</page>
</sitemap>
I've implemented the first example with my style sheet and it seems to work fine, but I'm unsure what the correct form should be.