C# xml node to xml file


















You can simply iterate through your list box items, identify the corresponding 'node' element and AppendChild it, that way you should end up with the proper order as doing AppendChild on a node already inserted somewhere moves it around and you would move any node to its proper position:. What if you just looped through the list box and created a new Xml file rather than re-order. Unless the Xml file has other content it would probably be the easiest. The content you requested has been removed.

Ask a question. Quick access. Search related threads. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.

If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. Add a comment. Active Oldest Votes. Save movieListXML ;. CreateElement "Time" ; elem.

Nikita Nikita 5 5 silver badges 14 14 bronze badges. I didn't get an error and nothing was added to file. Nope I'm not sure what happened but i got it to work with the answer above. Thanks for your help though. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.

Stack Gives Back



0コメント

  • 1000 / 1000