Click or drag to resize

XmlHelperReplaceElement Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
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.14 (14.1.1.14)
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