I'm trying to do the same thing as 10pitus82. I tried your suggestion of getting the XML structure from sampledata.xml, but I can't figure out how to open the file in C# code.
The only function I can find to import a file is the XDocument.ImportFile() function.
And the only function I can find to create a new XDocument is the CreateDOM() function, but that returns an IXMLDOMDocument type which can't be converted to an XDocument, so I can't use the ImportFile function.
So, could you explain how to do this in a bit more detail for those of us that are a bit dense.
Thanks,
-Dan