private static void XMLToPdb(string asmPath, string inputXml, SymbolFormat symFormat) { Console.WriteLine("Reading XML file: {0}", inputXml); Console.WriteLine("Writing a {0} symbol file and updating assembly: {1}", symFormat, asmPath); // Use XML serialization to read in the symbol data XmlReaderSettings settings = new XmlReaderSettings(); settings.ConformanceLevel = ConformanceLevel.Document; XmlSerializer ser = new XmlSerializer(typeof(SymbolData)); SymbolData symData; using (XmlReader reader = XmlReader.Create(inputXml, settings)) { symData = (SymbolData)ser.Deserialize(reader); } // Emit PDB SymbolDataWriter writer = new SymbolDataWriter(asmPath, symFormat); writer.WritePdb(symData); }