Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   XML (https://www.delphipraxis.net/46-xml/)
-   -   Prism TXMLDocument Komponenten in Delphi 8 nicht mehr vorhanden? (https://www.delphipraxis.net/21143-txmldocument-komponenten-delphi-8-nicht-mehr-vorhanden.html)

MaBuSE 28. Apr 2004 13:52


TXMLDocument Komponenten in Delphi 8 nicht mehr vorhanden?
 
Hallo,
auf Seite 33 in der Tabelle 2 des delphi.net Sonderheftes schreibt Andreas Kosch, dass die TXMLDocument Komponente nicht mehr in Delphi 8 existiert.

Das stimmt nur teilweise:

Richtig ist: Es gibt keine visuelle Komponente mehr in der Komponentenpalette.

Aber zum Glück gibt es in der Unit Borland.Vcl.XmlDoc noch die Klasse TXMLDocument.

Mit Delphi 7 konnte man über einen Wizard (Menü -> Datei -> Neu -> weitere -> Objektgalerie / Neu -> XML - Datenanbindung) eine Unit erzeugen mit der ein einfacher Zugriff auf die XML Daten möglich ist. (Leider finde ich diesen Wizard nicht mehr in Delphi 8 )

Programme / Programmteile die diese Methode benutzt haben sind relativ einfach zu konvertieren.

Es sind im Wesentlichen nur 2 Änderungen nötig:

1. In der erzeugten Unit muss nur im uses Abschnitt Borland.VCL.Variants eingefügt werden.

2. In der Procedure AfterConstruction Typzuweisung anpassen z.B.

Delphi-Quellcode:
procedure TXMLRdfType.AfterConstruction;
begin
  RegisterChildNode('shout', TXMLShoutType);
  ItemTag := 'shout';
  // ItemInterface := IXMLShoutType;
  ItemInterface := &Type(IXMLShoutType); // Anpassung D7 -> D8 
  inherited;
end;
Danach lässt sich das ganze problemlos kompilieren und benutzen.

Ich hoffe diese Info hilft jemand.

mfg MaBuSE

MathiasSimmack 28. Apr 2004 14:42

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Zitat:

Zitat von MaBuSE
auf Seite 33 in der Tabelle 2 des delphi.net Sonderheftes schreibt Andreas Kosch, dass die TXMLDocument Komponente nicht mehr in Delphi 8 existiert.

Das stimmt nur teilweise:

Richtig ist: Es gibt keine visuelle Komponente mehr in der Komponentenpalette.

Aber zum Glück gibt es in der Unit Borland.Vcl.XmlDoc noch die Klasse TXMLDocument.

Na dann hat Andreas Kosch doch recht, wenn er sagt, dass es keine Komponente mehr gibt. ;)

Für WinForms-Anwendungen gibt es übrigens den "System.Xml"-Namespace, womit man ebenfalls alle Sorgen los ist, wenn man keine VCL.NET-Anwendung schreiben will.

Alexander 28. Apr 2004 14:58

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Wieso willst du den Borland-Namespace nehmen, wenn es System.Xml gibt? Dort gibt es dann auch wieder XMLDocument, wenn ich mich nicht irre... ;-)

lkz633 28. Apr 2004 15:37

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Und nach einem aufspielen des 2. Updates fuer D8 hat man auch die Komponente wieder.

Gruss lkz633

MaBuSE 28. Apr 2004 16:06

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Zitat:

Zitat von lkz633
Und nach einem aufspielen des 2. Updates fuer D8 hat man auch die Komponente wieder.

Ich nicht :-(

Wie bekomme ich die denn zu sehen ?

Alexander 28. Apr 2004 16:34

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Zitat:

Zitat von lkz633
Und nach einem aufspielen des 2. Updates fuer D8 hat man auch die Komponente wieder.

Gruss lkz633

Sicher?

lkz633 28. Apr 2004 17:58

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Hallo,

hier die Bestaetigung:
Zitat:

INTERNET

* TXMLDocument is now included with the product. This includes
all of the XML runtime and an XML DOM implementation based on
System.Xml from the CLR.
Und vielleicht hilft das weiter: (Immer die Readme Datei lesen :evil: )
Zitat:

a) In the IDE, choose Component | Installed .NET Components.
In the dialog that appears, select the .NET VCL
Components tab and click Add. Navigate to the Delphi 8
installation bin directory, select
Borland.Vcl.Design.Xml.dll, and click OK.

OR

b) Close the IDE and use regedit to add a new string entry,
"$(BDS)\Bin\Borland.Vcl.Design.Xml.dll" = "Borland XML
Components" to registry key
HKEY_CURRENT_USER\Software\Borland\BDS\2.0\Known
Assemblies and restart the IDE. Please read the WARNING at
the end of this file before editing your system registry.

MaBuSE 29. Apr 2004 08:37

Re: TXMLDocument Komponenten in Delphi 8 nicht mehr vorhande
 
Zitat:

Zitat von lkz633
(Immer die Readme Datei lesen :evil: )

Wer lesen kann ist Klar im Vorteil. RTFM ! :oops:

Danke :oops:


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:54 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz