Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   XML (https://www.delphipraxis.net/46-xml/)
-   -   Delphi XML ohne zusätzliche Komponenten in D2005 PE? (https://www.delphipraxis.net/75842-xml-ohne-zusaetzliche-komponenten-d2005-pe.html)

Ydobon 25. Aug 2006 23:34

Re: XML ohne zusätzliche Komponenten in D2005 PE?
 
Oder ohne alles: CreateOLEObject('Msxml2.DOMDocument.6.0')

Bernhard Geyer 26. Aug 2006 16:03

Re: XML ohne zusätzliche Komponenten in D2005 PE?
 
Zitat:

Zitat von Ydobon
Oder ohne alles: CreateOLEObject('Msxml2.DOMDocument.6.0')

Aber nur wenn die passende Version auch instaliert ist (Von MS XML2, die Version 6 wenn mich nicht alles täuscht.

Mein Liebling: OpenXMl

Ydobon 26. Aug 2006 17:05

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.
Seite 2 von 2     12   

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