Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
XmlHelper..::.FindElement Method (IXmlElement, String)
XmlHelper Class See Also

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

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

# Syntax

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

#### Parameters

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

path
  Type: System..::.String
  The path to follow to find the desired XML element.

#### Return Value

The child element with the specified path or null if such a child element does not exist.

# Remarks

The path format 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

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

XmlHelper Class
FindElement Overload
Tangosol.Run.Xml Namespace