Click or drag to resize

XmlHelperEnsureElement Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Ensure that a child element exists.

Namespace:  Tangosol.Run.Xml
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public static IXmlElement EnsureElement(
	IXmlElement xml,
	string path
)

Parameters

xml
Type: Tangosol.Run.XmlIXmlElement
An XML element.
path
Type: SystemString
Element path.

Return Value

Type: IXmlElement
The existing or new IXmlElement object.
Exceptions
ExceptionCondition
ArgumentException If the name is null or if any part of the path is not a legal XML tag name.
InvalidOperationException If any element in the path is immutable or otherwise can not add a child element.
Remarks
If any part of the path does not exist create new child elements to match the path.
See Also