SpeedyGonzalez
New Member
I'm trying to create a XML structure (not read/write from/to a file, only the logical part). I'm really confused about how to go about it and what do use. After looking on the Internet I've seen two candidate classes: \[code\]XmlDocument\[/code\] and \[code\]XDocument\[/code\] (with their corresponding references to nodes, elements, attributes etc.).One's got to be deprecated but I've checked fairly recent posts (2010 and even 2011) and they are still suggesting code using both variants. Also, the Google check for \[code\]XDocument\[/code\] only gives a fraction of the hits that \[code\]XmlDocument\[/code\] brings.When that part is sorted out, I've seen a number of different examples on how to compose a very simple XML structure. I guess the approach depends on the competence level of the person who suggests it, so I'm asking straight out - what classes and what syntax to use?