Article View: borland.public.delphi.commandlinetools
Article #293Re: D2005: How to alter .bdsproj files?
From: Stephan
Date: Thu, 24 Feb 2005 08:15
Date: Thu, 24 Feb 2005 08:15
26 lines
2095 bytes
2095 bytes
Hi Rob, thanks for your reply. > The "magic bytes" are the UTF-8 byte-order mark. When you find those > three bytes at the start of a file, it means that the entire file > (including those three bytes) is encoded as UTF-8. That's backed up by > the "encoding" attribute on the <?xml?> processing instruction. Thanks for the info. I just checked, Delphi dosn't seem to mind if those bytes are missing, it simply adds them again next time the file is saved. > In what way have you changed the file? For now, I haven't changed anything yet, I just load it (using XML::Simple) and save it again. What I ultimately want to do is change values in the VersionInfoKeys block, plus change some compiler and linker settings. Before I treat a .bdsproj file like a flat file, I thought I'd try the "clean" way first and really treat it like an XML file. I meanwhile got a reply from XML::Simple's author (Grant McLean), a possible reason that Delphi doesn't like the changed files is the fact that XML::Simple reorders the elements. Stephan
Technical Details
Message-ID:
<421d89e6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<421c911a$1@newsgroups.borland.com> <421ccebc@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,17104ed31a20cdf4 X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 24 Feb 2005 09:15:36 +0100 From: Stephan <cyber.mail0805.5.spasp@xoxy.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en, ja, ko MIME-Version: 1.0 Newsgroups: borland.public.delphi.commandlinetools Subject: Re: D2005: How to alter .bdsproj files? References: <421c911a$1@newsgroups.borland.com> <421ccebc@newsgroups.borland.com> In-Reply-To: <421ccebc@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.117.69.197 Message-ID: <421d89e6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109232102 212.117.69.197 (24 Feb 2005 00:01:42 -0800) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail