Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
12c (12.2.1.4.0)
E90869-02
Ensure that a child element exists.
Namespace: Tangosol.Run.Xml
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
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. |