Lädt externes Xml file für automatisierte Aktionen

 
Assembly: EDKB12WS (in EDKB12WS.exe)

Syntax

Visual Basic

Public Function init( _
   ByVal xmlImportFile As FileInfo _
) As Object

C#

public object init(
   FileInfoxmlImportFile
)

C++

public: 
object^ init(
   FileInfoxmlImportFile

JScript

public function init(
    xmlImportFile : FileInfo
) : object;

Parameters

xmlImportFile

Das Xml File mit den entsprechenden Parametern

 

 

 

Source code

Visual Basic

 Public Function init(ByVal xmlImportFile As FileInfo)
    Try
 
        Dim doc As New XmlDocument()
 
        doc.Load(xmlImportFile.FullName)
 
        'read all parameter nodes
        Dim parameterNodes As XmlNodeList
        parameterNodes = doc.SelectNodes("action/dokwerte/parameter")
 
        If parameterNodes.Count > 0 Then
            Dim node As XmlNode
            Dim name, value, dataType As String
 
            Dim parameterCounter As Integer = 0
 
            For Each node In parameterNodes
                'Read all Document specified Values
                '20080401 RGL zusätzliches TRY wenn node <parameter> leer geliefert wird kein Absturz
                Try
                    name = node.SelectSingleNode("name").InnerText
                    value = node.SelectSingleNode("value").InnerText
                    objDokumentWert = New AvaloqDokumentWert(name, value)
                    arrDoukmentWerte.Add(objDokumentWert)
                Catch ex As Exception
                    'xxx
                    'TKBLib.Errorhandling.TraceHelper.Msg("EdokaLib.Common.Action.Load", ex.Message & ex.StackTrace, TraceLevel.Error)
                End Try
                parameterCounter = parameterCounter + 1
 
            Next
        End If
 
    Catch ex As Exception
        'xxx
        '        TKBLib.Errorhandling.TraceHelper.Msg("EdokaLib.Common.Action.Load", ex.Message & ex.StackTrace, TraceLevel.Error)
        Throw ex
    End Try
 End Function 

Platforms

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

 

Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
 

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0
 

XNA Framework

Supported in: 3.0, 2.0, 1.0
 

 

See Also