| View previous topic :: View next topic |
| Author |
Message |
ggd Guest
|
Posted: Tue Apr 24, 2007 7:33 pm Post subject: open a .tmx file with ado |
|
|
I had save the data of the "Translation Repository" in a .tmx file and I am trying to open like this:
//procedure TForm1.FormActivate(Sender: TObject);
//begin
// ADOTable1.LoadFromFile('C:\default_turbo2006.tmx');
//end;
But when I run the application the following error appear:
"Cant create the recordset, the file is incomplete or not valid"
If someone knows how to fix it I will be glad. |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Wed Apr 25, 2007 8:11 am Post subject: Re: open a .tmx file with ado |
|
|
The .tmx file is a xml with doctype tmx.
The structure of the xml file is described here
http://www.lisa.org/tmx/tmx14.dtd
You cannot load it directly into a TADODataSet.
/Micke |
|
| Back to top |
|
 |
ggd Guest
|
Posted: Thu Apr 26, 2007 5:19 pm Post subject: Re: open a .tmx file with ado |
|
|
So, should I write a parser in order to translate the file into xml readable for TADODataSet.
Thanks a lot, GG. |
|
| Back to top |
|
 |
Mikael Eriksson Guest
|
Posted: Thu Apr 26, 2007 5:35 pm Post subject: Re: open a .tmx file with ado |
|
|
ggd skrev:
| Quote: | So, should I write a parser in order to translate the file into xml readable for TADODataSet.
Thanks a lot, GG.
|
You could try to use the XML Mapping Tool. (Tools menu - XML Mapper).
I have never used it but it looks to be exactly like what you need.
/Micke |
|
| Back to top |
|
 |
|