Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create newline in xml doc via asp/vb

Status
Not open for further replies.

penguin

Programmer
Jun 13, 1999
5
0
0
US
i'm creating a new xml doc on the fly (via asp/vbscript), and creating nodes, but I want each node to be on a newline. How can I do this?

thanks!!!
 
First off, XML is happiest when it's on one long line (your file is smaller, too).

VBScript version 2 has a vbCrLf constant you can use. If you have version 1 of VBScript you can use the Chr() function like this:
[tab]s = Chr(13) & Chr(10)
to get the same effect.

Chip H.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top