Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
XmlHelper..::.EnsureElement Method
XmlHelper Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Ensure that a child element exists.

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

# Syntax

C#
    public static IXmlElement EnsureElement(
    	IXmlElement xml,
    	string path
    )

#### Parameters

xml
  Type: Tangosol.Run.Xml..::.IXmlElement
  An XML element.

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

#### Return Value

The existing or new IXmlElement object.

# Remarks

If any part of the path does not exist create new child elements to match the path.

# Exceptions

Exception | Condition
--- | ---
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

XmlHelper Class
Tangosol.Run.Xml Namespace
XmlHelper..::.FindElement(IXmlElement, String)