Nabend,
hab mir mal das
XML-Tutorial von HagbardCeline zu Gemüte gezogen und steh jetzt vor einem (Verständnis?) - Problem.
So sieht der erste Teil iuhist.xml (*) aus:
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22:
| <?xml version="1.0"?> <items xmlns="x-schema:http://schemas.windowsupdate.com/iu/resultschema.xml"> <itemStatus xmlns="" timestamp="2004-06-09T18:14:00"> <identity itemID="winxp.windowsxp.ver_platform_win32_nt.5.1.x86.de.ver_nt_workstation..2600.1. 0.com_microsoft.directx_839643_xp_9_0." name="DirectX_839643_XP_9_0"> <publisherName> com_microsoft </publisherName> <language> de </language> </identity> <description hidden="0"> <descriptionText> <title> Sicherheitsupdate für DirectX 9.0 (KB839643)</title> <eula href="/msdownload/update/v3/static/eula/de/eula.htm"/> <details href="http://go.microsoft.com/fwlink/?LinkId=27992"/> </descriptionText> </description> <platform name="ver_platform_win32_nt"> <processorArchitecture> x86 </processorArchitecture> <version major="5" minor="1" build="2600" servicePackMajor="1" servicePackMinor="0"/> </platform> <downloadStatus value="COMPLETE"/> <downloadPath> C:\WUTemp\com_microsoft.DirectX_839643_XP_9_0 </downloadPath> [...] usw [...] |
Nun versuch ich die Text etc. in einem Memo abzulegen:
Delphi-Quelltext
1: 2: 3: 4: 5: 6:
| MyXML := NewXMLDocument;
MyXML.LoadFromFile('iuhist.xml'); MyXML.Active := True;
xmlOutputMemo.Lines.Add (MyXML.DocumentElement.ChildNodes['items'].Text); |
nur geht das einfach nicht... auch wenn ich andere ChildNodes anspreche, bzw deren Attribute versuche auszulesen.
Bin für jeden Hinweis dankbar
ki
ps:
wer die iuhist.xml nit kennt: Das ist die XML-Datei in der Windows die Daten zu den installierten Updates speichert, liegt unter PROGRAMME/WINDOWS UPDATE/V4/iuhist.xml[/code]