Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
SimpleElement..::.FindElement Method
SimpleElement Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Find a child element with the specified '/'-delimited path.

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

# Syntax

C#
    public virtual IXmlElement FindElement(
    	string path
    )

#### Parameters

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

#### Return Value

The specified element as an object implementing IXmlElement, or null if the specified child element does not exist.

#### Implements

IXmlElement..::.FindElement(String)

# Remarks

This is based on a subset of the XPath specification, supporting:

- Leading '/' to specify root
- Use of '/' as a path delimiter
- Use of '..' to specify parent

This is a convenience method. Elements are accessed and manipulated via the list returned from ElementList.
If multiple child elements exist that have the specified name, then the behavior of this method is undefined, and it is permitted to return any one of the matching elements, to return null, or to throw an arbitrary runtime exception.

# See Also

SimpleElement Class
Tangosol.Run.Xml Namespace