开发者

Convert xml string to XML document in Internet Explorer - C#, ASP.NET

开发者 https://www.devze.com 2023-01-05 23:33 出处:网络
I have converted a table as an xml string that looks something like <NewDataSet>\\r\\n <officelist>\\r\\n <OfficeID>2176</OfficeID>\\r\\n

I have converted a table as an xml string that looks something like

  <NewDataSet>\r\n <officelist>\r\n <OfficeID>2176</OfficeID>\r\n 
<Office>My Office </Office>\r\n <Region>Toronto</Region>\r\n 
<Division>TO </Division>\r\n 

How do I get this to a strict xm开发者_运维知识库l page where you can open and close the nodes (in IE) – like this xml feed


Change the Response.ContentType to "text/xml"


I found the solution I just used loadxml to load the string. Somehow i forgot about this

doc.LoadXml(xmlDS);
        doc.Save(Response.OutputStream);
0

精彩评论

暂无评论...
验证码 换一张
取 消