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

Linebreaks in XML

Status
Not open for further replies.

p3t3

Programmer
Aug 21, 2002
46
GB
Hi,

Im succesfuly creating an XML file from an ASP script using XMLDOM. This works fine, and the resulting XML can be viewed fine in IE. However, when manualy editing the file, there are no linebreaks between elements. IS there a simple way to add linebreaks without breaking the XML?

Thanks

Pete set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
 
Unfortunatly when xml parsers output data to a file they do not provide any nice formatting for you. This is the same in Java. I have noticed some of the newer parsers (.Net) are starting to output better formatting, but I don't believe that it is possible to force older parsers to output documents with specific spacing (liking indentation and linebreaks).

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
thanks. Bit annonying that, but only really matter sfor debuging...

Pete set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top