![]() |
Re: XML ohne zusätzliche Komponenten in D2005 PE?
Oder ohne alles: CreateOLEObject('Msxml2.DOMDocument.6.0')
|
Re: XML ohne zusätzliche Komponenten in D2005 PE?
Zitat:
Mein Liebling: ![]() |
Re: XML ohne zusätzliche Komponenten in D2005 PE?
Nummer 6 ist auch nur die aktuelle Version. 3 oder 4 dürfte zur Standardausstattung gehören, 5 gibt es mit Office und die letzte Version u.a. als eigener Download. Ich habe es so bisher nur einmal für XSLT verwendet, das ganze sieht dann etwa so aus:
Delphi-Quellcode:
var xml: OLEVariant;
clsid: TGUID; begin if failed(CLSIDFromProgID('Msxml2.DOMDocument.6.0', clsid)) then if failed(CLSIDFromProgID('Msxml2.DOMDocument.5.0', clsid)) then if failed(CLSIDFromProgID('Msxml2.DOMDocument.4.0', clsid)) then if failed(CLSIDFromProgID('Msxml2.DOMDocument.3.0', clsid)) then begin MessageBox(Handle, 'Mindestens MSXML 3.0 muss installiert sein!', 'Fehler', MB_ICONERROR or MB_OK); exit; end; xml:=CreateOLEObject(ClassIDToProgID(clsid)); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:51 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz