In an Asp.net MVC view, how do I use jQuery to parse the XML just returned from a controller
<p>In my MVC view (using VS 2012 RC), I'm attempting to parse the XML freshly returned from my Controller.
Here is my view code:</p>

<pre><code>@model RzMvc.Models.PortfolioResponse
@{
    ViewBag.Title = "PortfolioList";
}              

&lt;script type="text/javascript"&gt;

    $(displayXmlResponse);

    function displayXmlResponse(){
        var resp = $("#xmlResp");
        $("#xmlTest").append(resp.children());

        var xml = $("xmlResp").text;      
            xmlDoc = $.parseXML(xml),
            $xml = $(xmlDoc),
            $title = $xml.find("portfolioSummary");            

        $("#xmlTest").append($title.text());      
    }    

&lt;/script&gt;

&lt;h2&gt;PortfolioList&lt;/h2&gt;

&lt;div&gt;
    &lt;p id="xmlTest"&gt;&lt;/p&gt;
    &lt;p id="xmlResp" &gt;@Model.XmlPortfolioResponse&lt;/p&gt;    
&lt;/div&gt;
</code></pre>

<p>The browser output looks like this:</p>

<blockquote>
  <p>PortfolioList</p>
  
  <p>Portfolio Listing</p>
  
  <p>System.Xml.XmlDocument</p>
</blockquote>

<p>Any guidance would be greatly appreciated. Here's part of my Controller code:</p>

<pre><code>    public ActionResult PortfolioList()
{
    XmlDocument xmlResponse = new XmlDocument();
    xmlResponse.LoadXml(portfoliosResponse);
    var portf = new PortfolioResponse { XmlPortfolioResponse = xmlResponse };


    return View(portf);
}
</code></pre>

<p>Model code is:</p>

<pre><code>namespace RzMvc.Models
{

    public class PortfolioResponse
    {
        public XmlDocument XmlPortfolioResponse { get; set; }
    }
}
</code></pre>
