XML Don't

Code:
<html>
<body>

<xml id="cdcat" src="cd_catalog.xml"></xml>

<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="ARTIST"></span></td>
<td><span datafld="TITLE"></span></td>
</tr>
</table>

</body>
</html>
it load the xml and give it the id "cdcat", then it can use it in the table.
But this method only works in Internet Explorer .
i want to use the XML DOM, but how to assign an id to the xml i load with javascript ?