CTI32 Engine Class Library

XmlConfigFile.GetFirst Method 

Read in XML file and get first node in the XML tree. Only returns a node that has an associated value.

[Visual Basic]
Public Function GetFirst( _
   ByVal fileName As String, _
   ByRef parents As String, _
   ByRef name As String, _
   ByRef xValue As String _
) As Integer
[C#]
public int GetFirst(
   string fileName,
   ref string parents,
   ref string name,
   ref string xValue
);

Parameters

fileName
XML File name
parents
Out. List of parent nodes
name
Out. Name of note
xValue
Out. Value of node

Return Value

-1 if no more nodes = Done, Otherwise returns the depth into the tree.

See Also

XmlConfigFile Class | CTI32Engine Namespace