BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

open a .tmx file with ado

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
ggd
Guest





PostPosted: Tue Apr 24, 2007 7:33 pm    Post subject: open a .tmx file with ado Reply with quote



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





PostPosted: Wed Apr 25, 2007 8:11 am    Post subject: Re: open a .tmx file with ado Reply with quote



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





PostPosted: Thu Apr 26, 2007 5:19 pm    Post subject: Re: open a .tmx file with ado Reply with quote



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





PostPosted: Thu Apr 26, 2007 5:35 pm    Post subject: Re: open a .tmx file with ado Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.