[SOLVED]Upload xml file
-
Is there a simple way to create and upload a xml file with networkaccessmanager and xmlstreamwriter.
I don't find any examples to this. -
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?
-
Nothing is unclear and that's the track I'm into.
-
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 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.
-
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!