[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How do I create Delphi classes from an XML schema

Posted on 2006-07-19
7
Medium Priority
?
500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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