mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:39:36 +02:00
* Patch from m. spiller to actually output xml
git-svn-id: trunk@13926 -
This commit is contained in:
parent
a611bfc103
commit
19d8ebc5f0
@ -21,7 +21,7 @@ unit dw_XML;
|
||||
|
||||
interface
|
||||
|
||||
uses DOM, PasTree, dwriter;
|
||||
uses DOM, PasTree, dwriter, xmlWrite, SysUtils;
|
||||
|
||||
Type
|
||||
|
||||
@ -104,8 +104,19 @@ end;
|
||||
{ TXMLWriter }
|
||||
|
||||
procedure TXMLWriter.WriteDoc;
|
||||
var
|
||||
doc: TXMLDocument;
|
||||
i: Integer;
|
||||
begin
|
||||
if Engine.Output <> '' then
|
||||
Engine.Output := IncludeTrailingBackSlash(Engine.Output);
|
||||
|
||||
for i := 0 to Package.Modules.Count - 1 do
|
||||
begin
|
||||
doc := ModuleToXMLStruct(TPasModule(Package.Modules[i]));
|
||||
WriteXMLFile(doc, Engine.Output + TPasModule(Package.Modules[i]).Name + '.xml' );
|
||||
doc.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user