XSD to Delphi Classes without XML binding

后端 未结 2 1073
小鲜肉
小鲜肉 2021-02-19 16:33

Perhaps this has been asked before, but I haven\'t found it with regards to Delphi - I have used a XSD.exe in Visual Studio that does exactly this: converts XSD into

相关标签:
2条回答
  • 2021-02-19 16:48

    Reading between the lines (please use less abbreviations, for instance, VS has multiple meanings, even in computing), and You probably used the XSD.EXE tool in Visual Studio or the .NET SDK to generate your source code in the C# or VB.NET language.

    If you have Delphi Prism, you can use XSD.EXE to generate Delphi Prism source code.

    The Delphi Prism language is very close to the Delphi native language, so that will give you a kick start.

    This should work with the Delphi Prism trial too.

    BTW: Why do you not want to use the Delphi native code generated by the XML Data Binding Wizard in a standalone way? It is interface based, but is pretty fast and works very well.

    0 讨论(0)
  • 2021-02-19 16:55

    http://sourceforge.net/projects/xxsd2code/ generates C++, C#, C++/CLI and Java - and it looks like the included 'LanguageWriter' classes are not too complicated to extend them for Delphi. The Java LanguageWriter for example has less than 400 lines. If there is interest in the Delphi community this could be implemented and contributed in a short timeframe...

    0 讨论(0)
提交回复
热议问题