ConfigSectionNode Navigate Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Navigates the path and return the appropriate node. Example: '!/nfx/logger/destination/$file-name'

Namespace: NFX.Environment
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public ConfigNode Navigate(
	string path
)

Parameters

path
Type: OnlineSystem String
If path starts from '!' then exception will be thrown if such a node does not exist; Use '/' as leading char for root, '..' for step up, '$' for attribute name, [int] for access to subsection or attribute by index, section[value] for access using value comparison of named section, section[attr=value] for access using value of sections named attr Multiple paths may be coalesed using '|' or ';'

Return Value

Type: ConfigNode
Remarks

/table[patient] - get first section named "table" with value "patient" /[3] - get 4th child section from the root /table/$[2] - get 3rd attribute of first section named "table" /table[short-name=pat] - get first section named "table" having attribute named "short-name" equal "pat"
Examples

Navigate("/vars/[3]"); Navigate("/tables/table[resident]"); Navigate("/vars/var1/$[2]"); Navigate("/tables/table[name=patient]");
See Also