Re: XSD to Pascal Objects?
From: Jan Mitrovics (mitrovics_at_web.de)
Date: 04/20/04
- Next message: Lauchlan M: "TRichView vs WPTools?"
- Previous message: Adem: "Re: XSD to Pascal Objects?"
- In reply to: Adem: "Re: XSD to Pascal Objects?"
- Next in thread: Adem: "Re: XSD to Pascal Objects?"
- Reply: Adem: "Re: XSD to Pascal Objects?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Apr 2004 07:51:15 -0700
Adem wrote:
> > For example, you'd like to see this XML:
> >
> > <Orders>
> > <Order>
> > <OrderNum>1004</OrderNum>
> > <CustomerName>Fred Hare</CustomerName>
> > <!-- etc... -->
> > </Order>
> > </Orders>
> >
> > Generate this pascal code:
> >
> > TOrders = class(TObject)
> > public
> > Orders : TObjectList;
> > end;
> >
> > TOrder = class(TObject)
> > public
> > OrderNum: Integer;
> > CustomerName: string;
> > //etc...
> > end;
> >
> > Is this near to the mark?
>
> Yes. More or less that is it.
This is actually included in Delphi 7 Enterprise. Not sure if it is in
D6 already.
It is called the XML Data Binding Wizard (not to be mixed up with the
XML mapper which will map to a database).
You can find the Wizard under File->New->XML Data Binding.
It takes an XML or DTD or XSD file and creates a .pas file with an
object representation based on IXMLNode.
Really a very handy tool! I miss it in D8 (haven't really digged
through all the .Net classes though).
Jan
- Next message: Lauchlan M: "TRichView vs WPTools?"
- Previous message: Adem: "Re: XSD to Pascal Objects?"
- In reply to: Adem: "Re: XSD to Pascal Objects?"
- Next in thread: Adem: "Re: XSD to Pascal Objects?"
- Reply: Adem: "Re: XSD to Pascal Objects?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|