LoadXML

Methode (Function) · gibt XmlDocument zurück

LoadXML ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.

Beschreibung (Originaltext der englischen SDK-Dokumentation): Loads an XML file into an XmlDocument. If the file cannot be parsed, it is retried with German umlauts and ß replaced by ASCII. Does not fill the invoice data of this object (see FillZUGFeRD_Structure).

Rückgabe: The loaded XmlDocument. An empty XmlDocument if the file does not exist, cannot be parsed or no licence is present (Last_Error = "NO License").

Deklaration

Public Function LoadXML(ByVal XMLPath As String, Optional ByVal LicenseKey As String = "") As XmlDocument

Parameter

NameTypPflichtBeschreibung
XMLPathStringerforderlichFull path of the XML file to load.
LicenseKeyStringoptional (Standard: "")Licence key. If empty, a previously set licence is used.

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim XMLPath As String = ""
Dim ergebnis = alo.LoadXML(XMLPath)

Aufruf (C#)

var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
string xmlPath = "";
var ergebnis = alo.LoadXML(xmlPath);

Artikel mit LoadXML

COM-Schnittstelle

LoadXML ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 6 von 343) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM. In C# werden ByRef-Parameter mit ref übergeben, VB-Eigenschaften mit Parametern heißen get_…/set_…, optionale Parameter können entfallen.