Loading ...

Indenting an XML String?

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  data access   » Indenting an XML String?

Indenting an XML String?

Posts under the topic: Indenting an XML String?

Posted: 9/7/2011

Lurker 160  points  Lurker
  • Joined on: 8/10/2011
  • Posts: 32

Hey guys, I'm pretty new at using XML objects, but I've got an ASP server using Microsoft.XMLDOM to create an XML object and send the XML string inside a page to the client.
The problem I'm having is that instead of sending a nicely formatted and indented string, it outputs as one line. I've searched for this for a few days now and I can't for the life of me figure out how to pretty-print it. I've seen ways to write to a file (i think) but not a way to just get the string with tabs and newline characters. Anyone know how to do this?

Thanks for any help


Page 1 of 1 (1 items)