KB: How to create an XML file"

// creating
XMLBreezeDocument doc = XMLBreezeDocument.NewDoc();
doc.RootNode = new XMLBreezeNode("XMLBreezeEditor");
doc.RootNode.Attributes.Add("window_state", this.MainWindowState.ToString());

XMLBreezeNode optionsNode = new XMLBreezeNode("Options");
optionsNode.Attributes.Add("CheckForUpdateOnStartup", Convert.ToString(this.CheckForUpdates));
optionsNode.Attributes.Add("Theme", Convert.ToString((int)Theme));

doc.RootNode.Nodes.Add(optionsNode);

doc.Save("c:\myfile.xml", true);

See Also