Delphi ActiveX
Delphi ActiveX
Setting XML Tag and Content
See more XML Examples
Demonstrates how to set the tag and content of an XML node.The following XML sample code produces this output:
<abc>123</abc>
Chilkat Delphi ActiveX Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
xml: TChilkatXml;
begin
xml := TChilkatXml.Create(Self);
xml.Tag := 'abc';
xml.Content := '123';
Memo1.Lines.Add(xml.GetXml());
end;