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 

XML to DBGrid.....I thought this should be easy??

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
bryan
Guest





PostPosted: Thu Feb 22, 2007 8:17 pm    Post subject: XML to DBGrid.....I thought this should be easy?? Reply with quote



Hello group,
I have an xml doc that I want to display the contents in a DBGrid.
On my form, I have a DBGrid, DataSource, and TClientDataset.
I set the DBgrids data source to the TDataSource.
I set the TClientDataSet's "FileName" to my XML document
I set the DataSource's Dataset to the TClientDataSet.

So far so good.
I make the dataset active and I get an error. "Missmatch in Data Packet".

So I'm obviously doing something wrong... I also have a xml schema file for the xml doc, but I don't know where/how it fits into the components I'm using.

Any help would be greatly appreciated.
Thanks!
Bryan
Back to top
Guillem
Guest





PostPosted: Thu Feb 22, 2007 9:24 pm    Post subject: Re: XML to DBGrid.....I thought this should be easy?? Reply with quote



bryan wrote:

Quote:

Hello group,
I have an xml doc that I want to display the contents in a DBGrid.
On my form, I have a DBGrid, DataSource, and TClientDataset.
I set the DBgrids data source to the TDataSource.
I set the TClientDataSet's "FileName" to my XML document
I set the DataSource's Dataset to the TClientDataSet.

So far so good.
I make the dataset active and I get an error. "Missmatch in Data
Packet".

So I'm obviously doing something wrong... I also have a xml schema
file for the xml doc, but I don't know where/how it fits into the
components I'm using.


I guess (not sure) the problem is that the TClientDataset uses its own
schema, which incidentally does not coincide with yours.

--
Best regards :-)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
John Kaster (CodeGear)
Guest





PostPosted: Mon Apr 30, 2007 8:12 am    Post subject: Re: XML to DBGrid.....I thought this should be easy?? Reply with quote



bryan wrote:

Quote:
Any help would be greatly appreciated.

Have you looked at XMLMapper?

--
John Kaster http://blogs.codegear.com/johnk
CodeGear Developer Network: http://dn.codegear.com
Features and bugs: http://qc.codegear.com
Got source? http://cc.codegear.com
If it's not here, it's not happening: http://ec.codegear.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML 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.