Namespace: DeltaEngine.Content.Xml
Assembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Content.Xml.Tests.XmlDataTests
1 unit tests call DeltaEngine.Content.Xml.XmlData.RemoveAttribute(System.String)
Assembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- attributeName
- Type: System String
Remarks
Examples
[Test] public void RemoveAttribute() { var root = new XmlData("root"); root.AddAttribute("attribute1", "value1"); root.AddAttribute("attribute2", "value2"); root.AddAttribute("attribute1", "value3"); root.RemoveAttribute("attribute1"); Assert.AreEqual(1, root.Attributes.Count); root.RemoveAttribute("attribute3"); Assert.AreEqual(1, root.Attributes.Count); }
See Also