 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
bryan Guest
|
Posted: Thu Feb 22, 2007 8:17 pm Post subject: XML to DBGrid.....I thought this should be easy?? |
|
|
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
|
Posted: Thu Feb 22, 2007 9:24 pm Post subject: Re: XML to DBGrid.....I thought this should be easy?? |
|
|
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
|
|
| Back to top |
|
 |
|
|
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
|
|