Debian Codegraph @

src/compatibility/delphi-only/xmlwrite.pas

raw
1 {
2 Copyright 2019-2019 Michalis Kamburelis.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { Delphi XML reading routines.
17 This unit is compatible with a subset of FPC XMLWrite unit. }
18 unit XMLWrite;
19
20 {$I castleconf.inc}
21
22 interface
23
24 uses DOM, Classes;
25
26 procedure WriteXMLFile(const Doc: TXMLDocument; const Stream: TStream);
27
28 implementation
29
30 procedure WriteXMLFile(const Doc: TXMLDocument; const Stream: TStream);
31 begin
32 Doc.InternalDocument.SaveToStream(Stream);
33 end;
34
35 end.
36