XmlData RemoveChild 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 bool RemoveChild(
	XmlData child
)

Return Value

Type: Boolean
Remarks

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

1 unit tests call DeltaEngine.Content.Xml.XmlData.RemoveChild(DeltaEngine.Content.Xml.XmlData)
[Test]
public void RemoveChild()
{
    XmlData root = CreateDeepTestXmlData();
    Assert.IsTrue(root.RemoveChild(root.Children[0]));
    Assert.IsFalse(root.RemoveChild(new XmlData("unknown")));
}
See Also