0

My strategy is:

  1. Use XDocument.load() to read the XML files
  2. Create an array with the root nodes of interest
  3. if the root nodes (for one XML-file) does not exist in the other XML-file, create a new XML file and paste the node (incl. elements and attributes) in there.
  4. Save the new document.

Are there any easier strategies than mine?

Do you have any advices of how I can solve this?

CSharper
  • 1
  • 1
  • Use a [diff](https://en.wikipedia.org/wiki/Diff) tool? – Heretic Monkey Jul 05 '22 at 12:27
  • Your question seems very broad. Did you see [How would you compare two XML Documents?](https://stackoverflow.com/q/167946/3744182)? Do the answers there work for you? If not, why not? What have you tried so far? What do you mean by *array with the root nodes of interest*, can you share a [mcve] that narrows your question? – dbc Jul 05 '22 at 15:21

0 Answers0