Advertisement
Advertisement
| 04.15.2008 at 04:32AM PDT, ID: 23323302 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
XmlDocument document = new XmlDocument();
XmlElement root = document.CreateElement("root", "http://foobar.com");
document.AppendChild(root);
XmlElement foo = document.CreateElement("foo");
root.AppendChild(foo);
XmlElement bar = document.CreateElement("bar");
XmlAttribute attribute = document.CreateAttribute("attribute");
attribute.Value = "value";
bar.Attributes.Append(attribute);
foo.AppendChild(bar);
document.Save(filename);
|