Using .html() , .append() function with XML files.

Using .html() , .append() function with XML files.


Hi,
 
I have read that these functions do not work with XML documents. I have a XML file with html tags in it to use it as a print template.
 
XML file
.........
<html>
<body>
 
<div id="SpeedPost">
 
</div>
 
</body>
</html>
 
I have a js file "mails.js" I want to add  "<table><tr>Newpost</tr><table>" to the the speedpost div using .html(), will it be possible by adding something like this to my mails.js file?
 
       $(#SpeedPost).html("<table><tr>Newpost</tr><table>"); 
 
 if not how can it be done?
 
Thanks in advance