I have an XML String that I want to load into an Excel worksheet. I've almost got it to work but I need to be able to generate the schema for passing to XmlMaps.Add:
String xml; //This is already populated with an XML String; I want to get the schema based on the xml structure
Workbook w = Globals.ThisAddIn.Application.ActiveWorkbook;
w.XmlMaps.Add(***Need schema here***, "root node");
Is it possible to generate the schema programmatically here? I am receiving this XML string from a web service.