Click or drag to resize

XmlHelperReplaceElement Method

.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Replace a child element with the same name as the specified element.

Namespace:  Tangosol.Run.Xml
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntax
C#
public static bool ReplaceElement(
	IXmlElement xmlParent,
	IXmlElement xmlReplace
)

Parameters

xmlParent
Type: Tangosol.Run.XmlIXmlElement
Parent IXmlElement.
xmlReplace
Type: Tangosol.Run.XmlIXmlElement
Element to replace with.

Return Value

Type: Boolean
true if matching child element has been found and replaced; false otherwise.
Exceptions
ExceptionCondition
InvalidOperationException If the parent element is immutable or otherwise cannot remove a child element.
Remarks
If the child element does not exist the specified element is just added.
See Also