Export the registry to a XmlDocument object and import registry keys from a XmlDocument object.

Using this type is easy:

  1. Add a reference to the class library.
  2. Add: using XmlDocumentRegistry.
  3. Instanctiate a new XmlDocument.
  4. Use the ImportFromRegistry extension method to import parts of your registry.
  5. Use the ExportToRegistry extension method to export the contents of the xml to the registry.