Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Is it possible to write on same xml file by different functions in a class?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to write on same xml file by different functions in a class?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 4 Posters 693 Views 2 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.
  • K Offline
    K Offline
    kishore_hemmady
    wrote on last edited by
    #1

    I want to write a XML file using XMLstreamwriter.But this writing should not be done in a single function.I want to have multiple functions to write on the same XML file.How can this be done please suggest

    raven-worxR JonBJ 2 Replies Last reply
    0
    • K kishore_hemmady

      I want to write a XML file using XMLstreamwriter.But this writing should not be done in a single function.I want to have multiple functions to write on the same XML file.How can this be done please suggest

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @kishore_hemmady
      sure, no problem.
      You would just need to worry if you also would write to the file from different threads.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • K kishore_hemmady

        I want to write a XML file using XMLstreamwriter.But this writing should not be done in a single function.I want to have multiple functions to write on the same XML file.How can this be done please suggest

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @kishore_hemmady
        Use the same XMLstreamwriter instance in all functions. Do not create separate XMLstreamwriter instances in each function which writes!

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

          Hi,

          You should take a look at the Bookmarks Example.

          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

          • Login

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