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. [SOLVED]Upload xml file
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Upload xml file

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 3.0k 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.
  • T Offline
    T Offline
    toho71
    wrote on last edited by
    #1

    Is there a simple way to create and upload a xml file with networkaccessmanager and xmlstreamwriter.
    I don't find any examples to this.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      First step is to create the XML. QXmlStreamWriter is suitable for that, and there are examples of how to do that. The next step is uploading the data. I guess you need to use HTTP post for that? If so, QNAM can do that indeed. What is unclear about the documentation of QNAM's post() methods?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toho71
        wrote on last edited by
        #3

        Nothing is unclear and that's the track I'm into.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raja26
          wrote on last edited by
          #4

          You should create the XML file as Andre suggested. And for uploading part, you have to upload it as any other file as suggested in this thread "Upload file using Network manager":http://qt-project.org/forums/viewthread/11361

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            [quote author="raja26" date="1345207112"]You should create the XML file as Andre suggested. And for uploading part, you have to upload it as any other file as suggested in this thread "Upload file using Network manager":http://qt-project.org/forums/viewthread/11361[/quote]

            Why are you responding to a topic that is eight months old? You're just adding noise to everyone this way.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              raja26
              wrote on last edited by
              #6

              I just don't note the date, the thread was created. I keep on reading threads and if I find something relevant to my knowledge I post. Just for the sake of helping users, who get to this page from search results. It's not that only the creator of the thread will comeback for a solution anyone will come here for a solution.

              I don't find Stackoverflow that much useful for Qt or QML. I receive alerts everyday which goes more or less unanswered. So the only place people would come is this forum. So they may find the solution useful even it is an year old.

              If you till consider this as a noise for everyone just remove my comments. Thank you!

              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