1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
procedure TFicheAcquit.GAMMA1Click(Sender: TObject);
var
Body, SubmittedDraftOfEaad, Circulation : IXMLNode;
begin
memo1.Clear;
XMLdoc.Version := '1.0';
XMLdoc.Encoding := 'ISO-8859-1';
XMLdoc.StandAlone:= 'yes';
XMLDoc.DocumentElement := XMLDoc.CreateElement('DFRCD801 A','http://gamma.douane.finances.gouv.fr/dfr/dfr801" xmlns="http://fr.gouv.finances.douane.gamma/types');
Body := XMLDoc.DocumentElement.AddChild('Body');
SubmittedDraftOfEaad := Body.AddChild('SubmittedDraftOfEaad');
Circulation := SubmittedDraftOfEaad.AddChild('Circulation');
Circulation.Attributes['TypeCirc1'] := 'N';
memo1.Lines.Assign(XMLDoc.XML);
XMLDoc.SaveToFile('C:\Users\raguin\Desktop\Copie de DAE.xml');
end; |