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

TClientDataSet & XML

Status
Not open for further replies.

Valcor

IS-IT--Management
Mar 22, 2001
25
US
Hi All,

I've been doing a bit of work recently with TClientDataSet (very useful tool), and have taken advantage of the export/import abilities with XML. I'm curious to know if it is possible to save the XML file with CR/LF in them? I'm working with a fairly large database (12MB), and when saving it to XML, that 12MB all gets stuck on a single line. Doesn't make reading very easy.

Is there any properties to do this? If so, what are they?

Thanks in Advance.

-- Valcor
 
The WrapText function might be what you need. WrapText returns a copy of your string broken into multiple lines. Each line is broken whena a line reaches MaxCol characters. To create a line break, BreakSStr is inserted in the string after a series of BreakChars characters at the end of the line (usually #13 and #10).

 
All very well... but when you're using ClientDataSet.SaveToFile('filename'); using other functions doesn't work... I'm after a switch, or a property on TClientDataSet that wraps the lines for me.

Thanks for your suggestion though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top