Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. XMLSpy code generation and Qt
Forum Updated to NodeBB v4.3 + New Features

XMLSpy code generation and Qt

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PaladinSix
    wrote on last edited by
    #1

    Wondering if anyone has experience using XMLSpy's code generation features with Qt. Specifically, are the C++ classes generated by XMLSpy and underlying libraries (e.g., the XML parser) compatible with the Qt framework and Qt Creator?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From a quick overlook at the capability, it doesn't seem that it should be a problem. Just be sure on windows to use the same compilers (same VS version as Qt)

      Otherwise you could even try to integrate the code inside your own project

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PaladinSix
        wrote on last edited by
        #3

        Hi, thanks for responding. I was hoping for a definitive answer from someone who has actually used XMLSpy-generated code with success in the Qt framework, as the question for me is whether I should spend $1,000+ to purchase XMLSpy (which I want principally for the code generation functionality). I'd hate to pay that kind of $$$ only to find out that it was futile.

        I have used CodeSynthesis XSD in the past with Visual Studio. I understand that CodeSynthesis can be made to work with Qt, but it has licensing limitations that I can't abide by for my current project. I'm just an intermediate-level, hobbyist programmer, so the prospect of having to do a deep dive into the guts of Qt in order to get XMLSpy-generated code working is a bit daunting.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you have an example of such code ?

          Another channel where you can ask is irc at #qt or the interest mailing list

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PaladinSix
            wrote on last edited by
            #5

            [quote author="SGaist" date="1405631660"]Do you have an example of such code ?[/quote]

            Sadly, no. I foolishly allowed my 30-day evaluation period for XMLSpy to expire before I actually tried to generate any code from a schema.

            [quote]Another channel where you can ask is irc at #qt or the interest mailing list[/quote]

            Thanks. I'm also going to try posting on Altova's forum. maybe even contact their sales staff. If I get a definitive answer, I'll post it here.

            I suppose, in a pinch, I could write the XML loading/parsing/validating code as a Visual Studio app, then launch that app from the main Qt code and get at the data via interprocess communication. But that's complicating things for an intermediate-level coder such as myself. :)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You also have the Qt XML module if you want

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • P Offline
                P Offline
                PaladinSix
                wrote on last edited by
                #7

                [quote author="SGaist" date="1405668226"]You also have the Qt XML module if you want[/quote]

                True, that will load and parse an xml instance document and validate it against the schema. But it doesn't go that last mile: creating schema-specific c++ classes and automatically mapping the DOM document data to the custom classes. This last part is tedious to do manually because you have to recreate all of the schema semantics in c++, and every time the underlying schema changes, you have to amend your c++ classes. It's not that it can't be done, but the automatic code generation of XMLSpy or CodeSynthesis is a huge time saver. (That's why I'm willing to pay $1000 for XMLSpy on a hobby project....to avoid potentially several hundred hours of tedium).

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved