procedure SetContentForTabSheetAssemblyInfo;
var XmlDoc : TXMLDocument ;
RootNode : IXMLNode ;
Firmware : IXMLNode ;
InfoNode : IXMLNode ;
xmlFileName, xmlValueName, xmlValueVersion, xmlValueDate :
string ;
XmlDocIsEmpty : boolean;
begin
XmlDoc := TXMLDocument.Create (
nil);
xmlFileName := currentPathWithArchiveContent + '
\' + sZipFileXmlFolder + '
\' + aZipFileSrvXmlFiles[0];
if (FileExists(xmlFileName) = true)
then
begin
XmlDoc.LoadFromFile(xmlFileName);
XmlDoc.Active := true ;
if (XmlDoc.IsEmptyDoc = false)
then
begin
// Hier bekomme ich immer eine Exception (Ungültige Zeigeroperation)
RootNode := XmlDoc.DocumentElement.ChildNodes.Nodes['
AssemblyInfo'];
Firmware := RootNode.ChildNodes.Nodes[0];
InfoNode := Firmware.ChildNodes.Nodes[0];
xmlValueName := InfoNode.ChildValues['
Name'];
xmlValueVersion := InfoNode.ChildValues['
Version'];
xmlValueDate := InfoNode.ChildValues['
Date'];
end;
XmlDoc.Free;
end;
end;