I'm trying to convert a .groupproj project group file (from Delphi 2009), to use with Turbo Delphi Explorer, i.e., convert to .bdsgroup. The file structures are similar (xml). There are a easy way to do that? How?
-
8Surely a group project is just a collection of projects. You can just build it up in the IDE in a few seconds. – David Heffernan Jul 09 '11 at 16:20
-
"Derek WildStar"? Anime reference? – Fabricio Araujo Jul 10 '11 at 21:32
-
@Fabricio Araujo - Sim... era o desenho que eu mais gostava em minha infância: Patrulha Estelar – Carlos B. Feitoza Filho Jul 11 '11 at 16:55
-
@David Heffernan - My intention is just don't do that :) – Carlos B. Feitoza Filho Jul 11 '11 at 16:57
-
@WildStar - in english, boy. Or the other people will not get the "Star Blazers"(the name on US) reference. – Fabricio Araujo Jul 11 '11 at 16:59
-
@Ðerek It would have been quicker to do it in the IDE than to even write this question. I must be missing something. – David Heffernan Jul 11 '11 at 16:59
-
@David Heffernan - yes, unfortunately – Carlos B. Feitoza Filho Jul 22 '11 at 18:41
-
@Fabricio Araujo - OK, I'll do that next time, but Starblazers is very good ;) – Carlos B. Feitoza Filho Jul 22 '11 at 18:42
2 Answers
The easiest way is to make a mapping between those XML formats, then write a transformation to transform from the Delphi 2009 format to the Delphi 2006 format.
A good way for writing transformations between various XML formats is using XSL-Transformation (XSLT).
XSLT is a very powerfull language, for instance, Internet Explorer uses an XML Stylesheet (res://msxml.dll/defaultss.xsl) to transform XML files into HTML and display them as a tree structure.

- 23,965
- 9
- 74
- 154
-
5This approach might take longer than the IDE-based approached suggested by David in his comment above... – Andreas Rejbrand Jul 09 '11 at 17:12
-
3All we need now is a Linq based solution and we got all the overkill bases covered – David Heffernan Jul 09 '11 at 18:00
-
1If the formats are sufficiently similar, then the XSLT approach is very straightforward. Now we need to find a volunteer that does it once :> – Jeroen Wiert Pluimers Jul 11 '11 at 11:53
-
-
-
1@Ðerek mail me two equivalent config files and I'll see what I can do. – Jeroen Wiert Pluimers Jul 12 '11 at 03:25
Well, I guess @David Heffernan was right. I'm loosing time trying to convert a new .grouproj to a old .bdsgroup, so, I'm answering my own question: There are no easy way to convert a .groupproj to .bdsgroup, it's more easy to compare the packages "visually" opened into two IDEs the old and the new and so, create a new .groupproj from the old one.

- 704
- 7
- 23