I have the following XML
<creatures>
<Animals>
<Name>Dog</Name>
<Name>Cat</Name>
<Name>Monkey</Name>
</Animals>
<NumLegs>
<Legs>4</Legs>
<Legs>4</Legs>
<Legs>2</Legs>
</NumLegs>
</creatures>
Need a table as follows
Name Legs
Dog 4
Cat 4
Monkey 2
How do I do it in SQL? All the other questions I found on this topic had their XML structured differently. For e.g. if the XML was structured as below, I believe it is straightforward to parse it in XML using nodes()
<creatures>
<Animal>
<Name>Dog</Name>
<Legs>4</Legs>
</Animal>
.
.
.
</creatures>