I am trying to build an XML document based on Elements obtained from a list. Indeed my list returns an object with two fields (Titre and Contenu). Right now via my code, I get this
But I would like for each Category, have a title and all items related to this category. For the moment at each entrance of my list, it generates a category. While I am having the category that contains an item and a title. Like this
I put my code in the appendix. I know I'm new in the area and that there's necessarily a lack in my design. Any help Will Be Appreciated.
public void GenerateXML(XMLRecord file) { XmlDocument doc = new XmlDocument();