XmlData ClearAttributes 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 ClearAttributes()
Remarks

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

1 unit tests call DeltaEngine.Content.Xml.XmlData.ClearAttributes
[Test]
public void ClearAttributes()
{
    XmlData root = CreateShallowTestXmlData();
    XmlData child = root.Children[0];
    Assert.AreEqual(2, child.Attributes.Count);
    child.ClearAttributes();
    Assert.AreEqual(0, child.Attributes.Count);
}
See Also