Thread View: borland.public.delphi.database.dotnet
3 messages
3 total messages
Started by James Tilby
Wed, 20 Sep 2006 16:34
Creating Strongly Typed Datasets from XSD files
Author: James Tilby
Date: Wed, 20 Sep 2006 16:34
Date: Wed, 20 Sep 2006 16:34
18 lines
1419 bytes
1419 bytes
Hi, I am new to Delphi 2006. I am looking for a way that I can convert an XML schema (XSD) file into a strongly typed dataset class. I can see this can be done from a database source, but I want to use a schema file. In Visual Studio I can do this in the IDE, but would like to do this in the Delphi IDE and create Delphi (pascal) code. Sorry if this question has been answered before - on my search of previous answers/documentation I drew the conclusion that this is not possible with Delphi tools, but I may be wrong. Thanks for any help James
Re: Creating Strongly Typed Datasets from XSD files
Author: Robert รgren
Date: Mon, 25 Sep 2006 07:14
Date: Mon, 25 Sep 2006 07:14
17 lines
1654 bytes
1654 bytes
James Tilby wrote: > I am looking for a way that I can convert an XML schema (XSD) file into a > strongly typed dataset class. I can see this can be done from a database > source, but I want to use a schema file. > > In Visual Studio I can do this in the IDE, but would like to do this in the > Delphi IDE and create Delphi (pascal) code. Hi, if you have added the XSD file to a Delphi.NET project, try right-clicking the XSD file in the project manager and selecting Generate dataset (at the bottom of the menu). The file must be saved before the Generate dataset option is available IIRC. Regards, Robert
Re: Creating Strongly Typed Datasets from XSD files
Author: James Tilby
Date: Tue, 26 Sep 2006 15:20
Date: Tue, 26 Sep 2006 15:20
23 lines
1954 bytes
1954 bytes
Thank you Robert! That's exactly what I was looking for. I can also use the option "create instance of dataset" to put one of the dataset controls on my form. Perfect. "Robert ๏ฟฝgren" <robert.ogren.re-mo-ve-me@prodacapo.remove.com.remove> wrote in message news:451781ab$1@newsgroups.borland.com... > James Tilby wrote: >> I am looking for a way that I can convert an XML schema (XSD) file into a >> strongly typed dataset class. I can see this can be done from a database >> source, but I want to use a schema file. >> >> In Visual Studio I can do this in the IDE, but would like to do this in >> the Delphi IDE and create Delphi (pascal) code. > > Hi, > > if you have added the XSD file to a Delphi.NET project, try right-clicking > the XSD file in the project manager and selecting Generate dataset (at the > bottom of the menu). The file must be saved before the Generate dataset > option is available IIRC. > > Regards, > Robert
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads