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 24 Jul 2018, 09:23 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 1 Reply Last reply 24 Jul 2018, 09:27
    0
    • R Raghavendra Surpur
      24 Jul 2018, 09:23

      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 Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 24 Jul 2018, 09:27 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
      • V Offline
        V Offline
        VRonin
        wrote on 24 Jul 2018, 10:11 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

        1/3

        24 Jul 2018, 09:23

        • Login

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