How to render XML output in MVC view

jhd

New Member
\[code\]<header> <div class="content-wrapper"> <div class="float-left"> <p class="site-title"> <a href="http://stackoverflow.com/questions/11108876/~/">ASP.NET Web API</a></p> </div> </div></header><div id="body"> <section class="featured"> <div class="content-wrapper"> <hgroup class="title"> <h1> Calculator</h1> </hgroup> </div> </section> <section class="content-wrapper main-content clear-fix"> <input id="id" type="text" /> <p /> <input id="Plus" type="button" value="http://stackoverflow.com/questions/11108876/+" /><input id="Minus" type="button" value="http://stackoverflow.com/questions/11108876/-" /> <p /> <input id="id2" type="text" /> <p /> ________________________________ <p /> <label id="answer"></label> </section></div>\[/code\]this is my cshtml document and I need to have the label answer show a value from when I click plus which will then go to my api an get \[code\]/api/add?id=value&id2=value\[/code\] then it just gets and XML document and I can't do anything with this XML document. How do I display the value from the XML document for answer and IT CAN NOT USE JSON, it has to be XML output and using javascript is ok.
 
Back
Top