using System;
using System.Xml;
using XmlDocumentRegistry;
namespace RegistryXml
{
class Program
{
static void Main(string[] args)
{
var xml = new XmlDocument();
xml.ImportFromRegistry(Registry.CurrentUser, @"Software\Microsoft");
xml.Save(@"C:\my registry.xml");
}
}
}