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. Qt 5.4 : XML and XSD in data model
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4 : XML and XSD in data model

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 825 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.
  • G Offline
    G Offline
    Gaillardou
    wrote on 4 Feb 2015, 23:02 last edited by
    #1

    Hi,

    I have an xsd file with more than 700 fields. There are to many fields to use QXmlStreamReader, and test each branch or node.

    In C#, we can create a .cs file from an .xsd file, and use the class to fill data into and serialize / deserialize it into / from an XML file.

    How can I do this in Qt ? What is the best way to fill or read data received into an XML file, validate it using on .xsd file, and use the data as a class (or data model) in my software ?

    Thanks for answers or advices.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Feb 2015, 00:56 last edited by
      #2

      Hi and welcome to devnet,

      AFAIK, there's no direct Qt way to do this however your can use "this":http://www.codesynthesis.com/products/xsd/ to generate C++ classes that you can then use in your Qt code

      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

      1/2

      4 Feb 2015, 23:02

      • Login

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