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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

line feeds and tabs in xml document

Status
Not open for further replies.

jeskey

Programmer
May 3, 2005
7
US
I am manually generating xml from a database query and i am having problems because i do not know what characters to use as line-feeds for new lines and tabs to indend child tags.

Any help is appreciated.
 
The fact that you are asking the question might signal the solution to your problem. The answer is: don't do that.

There are any number of tools that will display correctly formed XML in a nice visual manner, but that is normally a job for the visual interface, not for the data within the XML document.

Tom Morrison
 
I do not want to display it, i want to create it.
 
You don't need to use new lines and tabs. XML is valid as one line. However, new line character is 
 and tab is 	

Jon

"There are 10 types of people in the world... those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top