Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.1.0)
E69639-01
Ensure that a child element exists.

Namespace: Tangosol.Run.Xml
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.1000 (12.2.1.1000)

Syntax

C#
public virtual IXmlElement EnsureElement(
	string path
)

Parameters

path
Type: System..::..String
Element path.

Return Value

The existing or new IXmlElement object.

Implements

IXmlElement..::..EnsureElement(String)

Remarks

This is a convenience method. It combines the functionality of FindElement(String) and AddElement(String). If any part of the path does not exist create new child elements to match the path.

Exceptions

ExceptionCondition
System..::..ArgumentException If the name is null or if any part of the path is not a legal XML tag name.
System..::..InvalidOperationException If any element in the path is immutable or otherwise can not add a child element.

See Also