[jQuery] Can the content of a node of xml be placed inside a div when xml source is loaded using .get

[jQuery] Can the content of a node of xml be placed inside a div when xml source is loaded using .get

the dynamic xml source creates a structure along the following lines
<content>
<title>my title</title>
<main>

about


</main>
<script>

</script>
</content>
the jquery code that I am using to take load the xml source and take the
content

$.get("./content/?id="+htmlDoc,function(xml){

var innerHeight = 0;
// however this return the text stripped of mark up
alert( $("main",xml).text() );

// i need to retain the mark and place it in my
main div
$("div#main").html($("main",xml).text());
innerHeight =
document.getElementById('innerMain').offsetHeight;
$("div#main").css({height: innerHeight+"px"});
$("div#content").css({height: innerHeight+"px"});
// $("div#main").slideDown("slow");

// console.info("new height " + innerHeight);
init();
});
is there a way to do this??
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/