Sample code for 30+ languages & platforms
Delphi DLL

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 DLL Downloads

Delphi DLL
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Xml;

...

procedure TForm1.Button1Click(Sender: TObject);
var
xml: HCkXml;

begin
xml := CkXml_Create();

CkXml_putTag(xml,'abc');
CkXml_putContent(xml,'123');

Memo1.Lines.Add(CkXml__getXml(xml));

CkXml_Dispose(xml);

end;