0

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 xml page where you can open and close the nodes (in IE) – like this xml feed

2 Answers 2

1

Change the Response.ContentType to "text/xml"

Sign up to request clarification or add additional context in comments.

Comments

0

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

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.