XmlData RemoveAttribute Method Delta Engine Documentation

Namespace: DeltaEngine.Content.Xml
Assembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RemoveAttribute(
	string attributeName
)
Remarks

Tests: DeltaEngine.Content.Xml.Tests.XmlDataTests
Examples

1 unit tests call DeltaEngine.Content.Xml.XmlData.RemoveAttribute(System.String)
[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