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. Convert Json file to Xml file in QT(C++)
Forum Updated to NodeBB v4.3 + New Features

Convert Json file to Xml file in QT(C++)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 2.7k Views
  • 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.
  • R Offline
    R Offline
    Raghavendra Surpur
    wrote on last edited by
    #1

    Hi All,

    We are saving records/data  in json file , but we want to convert json file into xml file,
    

    So how do i convert , please give me any solution

    Thanks,
    Raghavendra

    J.HilkJ 1 Reply Last reply
    0
    • R Raghavendra Surpur

      Hi All,

      We are saving records/data  in json file , but we want to convert json file into xml file,
      

      So how do i convert , please give me any solution

      Thanks,
      Raghavendra

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Raghavendra-Surpur

      There is
      QJsonDocument
      and
      QtXML modul

      How to use it, to convert one into the other, is up to you


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      4
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        Try something like this: https://pastebin.com/3a23dZEw

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        4

        • Login

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