Solved

How do I create Delphi classes from an XML schema

Posted on 2006-07-19
7
345 Views
Last Modified: 2010-05-18
I'm running Delphi 2005 Professional, and I need to create Delphi Classes from an XML schema.

I see references in the documentation to a XML Data Binding Wizard, which I can only assume is not available in the version of Delphi I am using.

Browsing the web gives lots of links to "xml2delphi" which seems to be what I need, but all the links now are dead.

Is there any thing that does now exist?

Guess what - this is quite urgent!

Ta
0
Comment
Question by:Hoffie01
7 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 17137325
>Delphi Classes
what for delphi classes?

(just wondering -> from a schema (primary for validation))

meikl ;-)
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 17137552
The XML Data Binding Wizard is available in Delphi 2005 Pro and in the past I've used it quite often. Don't have it available right now, unfortunately, but it is there.

Unfortunately, the XML Data Binding Wizard has some flaws since it fails to convert some datatypes correctly. Notably the booleans and date/time types are not compliant to the XML standard.

Btw, I googled and found http://www.aptrio.com/Development/Specialized-Tools/xml-delphi-gold-support-9349.html which seems to be very alive... But after a bit more searching I ended at:
http://www.it4mation.nl/products/discontinued_xml2delphi/

It has been discontinued. :-( And the source has not become open-source yet. Maybe it will never even become open-source.

In an O'Reilly book I once read that it would technically be possible to use XSLT to convert an XML schema to objects in whatever programming languages you like. In the past I have tried to start making such an XSLT file but it's just too much work.

Any other solutions? As far as I know, none. I know that the creators of XMLSpy have once considered to support Delphi with their product but apparantly that plan didn't get enough support. So the best solution is still the XML Data Binding Wizard that is part of Delphi, just as long as you're aware of it's flaws...

The flaws: booleans are written as firstcaps, thus True and False instead of true and false. Dates and times are written in whatever format Delphi likes at that moment and not according to the XML specifications, thus resulting in many nasty flaws.
0
 

Author Comment

by:Hoffie01
ID: 17137654
I don't have the XML Data Binding Wizard visible :-(.  Is it because I only have the win32 personality installed.  I hope not as I have very painful experiences of trying to add in the .net, resulting in having to start again from scratch
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 18266239
PAQ with points refunded, please. The two links might still be useful for someone. :-)
0
 
LVL 14

Expert Comment

by:cwwkie
ID: 18269824
Don't know if you want to keep a link to a discontinued product. But I leave that up to the moderator to decide.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18297734
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question