I am trying to write several strings that contain the values of several dictionaries to a single XML file. What would be the best way to do this? I thought xDocument looked the best way, but i am struggling to write multiple strings to one document.
I intend to read from this XML file so it needs to be valid.
FOrgive me if I am not understanding your question, but can’t you just add a parent element ” to contain all strings?