Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   xml file erstellen (https://www.delphipraxis.net/185583-xml-file-erstellen.html)

khh 24. Jun 2015 12:27

AW: xml file erstellen
 
doch noch ne Frage ;-)
Delphi-Quellcode:
TDOMElement(nDocSettings).SetAttribute('ss:ID', 'Default');
erstellt die Atttribute des Notes "Styles".
Folgendermassen hänge ich ein Note als Kind ein.

Delphi-Quellcode:

 nDocSettings := doc.CreateElement('Styles');
 nDocSettings.AppendChild(doc.CreateElement('Style'));
aber wie bekomme ich die Attribute des Notes "Style" erstellt?

erledigt, danke ;-)
so:
Delphi-Quellcode:
  nDocSettings := doc.CreateElement('Styles');
  nChild:=   nDocSettings.AppendChild(doc.CreateElement('Style'));
  TDOMElement(nChild).SetAttribute('ss:ID', 'Default');
hab nachgedacht ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:06 Uhr.
Seite 3 von 3     123   

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