Is there a better way than TXMLDocument to read XML snippet that return from Restful service
Is there a better way than TXMLDocument to read XML snippet that return from Restful service
the xml return as following:
true 0
I was able to read the values using TXMLDocument, but I was thinking if there's a lighter and more faster to do that.
I'm using Delphi 2010
the xml return as following:
I was able to read the values using TXMLDocument, but I was thinking if there's a lighter and more faster to do that.
I'm using Delphi 2010
Define an XSD for it, then use the XML Data Binding wizard to generate a wrapper with a unit around XMLDocument: http://edn.embarcadero.com/article/34110 About the same speed, but easier to use.
ReplyDeleteFor defining (complex) XSD, I would recommend Liquid XML Studio from liquid technologies (http://www.liquid-technologies.com/).
ReplyDeleteMartin Wienold or the free edition of Visual Studio. Works nice as well. Can also do verification of XML files against XSD When they are in the same project or solution.
ReplyDeleteMartin Wienold the Liquid XML Studio looks great but tell me if I am incorrect, it is a standalone application that reads XML files, validates them and other assorted things but Delphi is not part of the generation only C++ and a few other languages ? Did I miss something ?
ReplyDeleteRichard Baroniunas It is a standalone application, I've used it for creating complex XSD files (the biggest one was ~190KB) but nothing else.
ReplyDeleteI don't know if there is something in there that generates code, sorry. You can get a 15 day trialversion to see if it is what you want it to be.
What do you need code Generation for anyway?
Based on the multiple different products the Code generation will format a readable XSD, XML as well as C# code to shorten the development time. It also seems that the Data Binding is strictly for .Net and also integrates into Visual Studio, this product would be pretty neat in Rad Studio.
ReplyDeleteThank you Jeroen Wiert Pluimers & Martin Wienold , I have used VS2015 to create XSD, and it did on fly, didn't know it has this ability.
ReplyDeleteMohammed Nasman you're most welcome. I love Visual Studio a lot because it does so much more than .NET development support, is very stable, extendable and has a really rich 3rd party and open source community. In 2002 I'd never imagined Delphi and Visual Studio would take such different paths.
ReplyDeleteJeroen Wiert Pluimers I have been using vs2015 since few months and it's really a head of delphi IDE in many area's. also the Asp. net MVC framework is really wonderful to work with
ReplyDeleteMohammed Nasman I do not understand you are using Delphi 2010 which does not compare with XE7 or XE8 but you have been using VS2015, why because you downloaded the community package and love it ? Isn't this supposed to be a Delphi Developers board? Lars Fosdal
ReplyDeleteI have used VS 2010 to 2015 and I still prefer RS Enterprise XE7 / XE8 to conduct work so I am missing something here ?
Richard Baroniunas We still use D2010 because the company I work for is use it, and they not intend to upgrade because all the FMX work doesn't support RightToLeft languages.
ReplyDeleteAlso in XE7 & XE8 there not much work done for the IDE. error insight still show errors in right code and also increase memory usage of IDE.
VS2015 has this feature work perfect, beside show you how to fix the error ;-)
I still love Delphi for the desktop development, but unfortunately it's not major player in the recent most wanted area (Web & Mobile).
Mohammed Nasman Ok, good luck in the future.
ReplyDelete