Board index » off-topic » Re: XML versus textbased DFM
JED
Delphi Developer |
JED
Delphi Developer |
Re: XML versus textbased DFM2008-01-14 06:56:01 AM off-topic9 Marco Caspers wrote: Quoteand can also leave out some of those properties that are set by TJSDialog - TaskDialog for other operating systems: www.jed-software.com/jsd.htm Visual Forms IDE Add In: www.jed-software.com/vf.htm Blog: jedqc.blogspot.com |
Atle Smelvær
Delphi Developer |
2008-01-14 07:31:11 AM
Re:Re: XML versus textbased DFM
Very nice. It would be interesting to see the result when you are done :)
I'm trying to convince Allen Bauer that XML format in .dfm files is the way to go. He tells that you get a size and speed overhead, but I can't see that as true (in his blog comments). Size is smaller, and speed could be just the same (as long as they don't use MSXML, but a serial top to bottom parser saving properties as it traverse the XML). -Atle |
Atle Smelvær
Delphi Developer |
2008-01-15 05:12:00 PM
Re:Re: XML versus textbased DFM
This was just a fast sample with some manual editing, and I did not run it
through any checks. Only provided for a quick demonstration. But thanks for the adjustment :) -Atle {smallsort} |
Uli Gerhardt
Delphi Developer |
2008-01-15 08:02:58 PM
Re:Re: XML versus textbased DFMQuoteAs you can see, the XML file is smaller than the normal DFM file. isn't very SCC-friendly IMHO. |
JED
Delphi Developer |
2008-01-16 05:31:01 AM
Re:Re: XML versus textbased DFM
Atle Smelvfr wrote:
QuoteOr you could change the layout style: I think it is overkill and also if an XML parser can be fast, then there is no reason they couldn't improve the text dfm parser to be just as fast. -- TJSDialog - TaskDialog for other operating systems: www.jed-software.com/jsd.htm Visual Forms IDE Add In: www.jed-software.com/vf.htm Blog: jedqc.blogspot.com |
Atle Smelvær
Delphi Developer |
2008-01-16 06:28:00 PM
Re:Re: XML versus textbased DFMQuote>Or you could change the layout style: QuoteI think it is overkill and also if an XML parser can be fast, then I would recommend, because the difference will be minimal or nothing when done right. The thing with XML is that it is a standardised format, and could help for any build process etc. you might have. The other thing is that it would make this format good also for normal object save/load, and not just something for visual VCL stuff. So you could have one format for all, and easy display data, import, eksport, etc. -Atle Quote
|