* Use exposed TDOMWriter to create reduced XML (non-humanreadable)

git-svn-id: trunk@41664 -
This commit is contained in:
michael 2019-03-09 20:01:27 +00:00
parent 4dd27d4d03
commit 492c0d58d8
3 changed files with 44 additions and 2 deletions

View File

@ -195,7 +195,21 @@ end;
procedure TADOOutputStreamer.FinalizeOutput;
begin
xmlwrite.WriteXML(FXML,Stream);
{$IFNDEF VER3_0}
if Not (ooHumanReadable in OutputOptions) then
begin
With TDOMWriter.Create(Stream,FXML) do
try
LineBreak:='';
IndentSize:=0;
WriteNode(FXML);
finally
Free;
end;
end
else
{$ENDIF}
xmlwrite.WriteXML(FXML,Stream);
FreeAndNil(FXML);
end;

View File

@ -241,6 +241,20 @@ end;
procedure TCDSOutputStreamer.FinalizeOutput;
begin
{$IFNDEF VER3_0}
if Not (ooHumanReadable in OutputOptions) then
begin
With TDOMWriter.Create(Stream,FXML) do
try
LineBreak:='';
IndentSize:=0;
WriteNode(FXML);
finally
Free;
end;
end
else
{$ENDIF}
xmlwrite.WriteXML(FXML,Stream);
FreeAndNil(FXML);
end;

View File

@ -198,7 +198,21 @@ end;
procedure TXMLOutputStreamer.FinalizeOutput;
begin
xmlwrite.WriteXML(FXML,Stream);
{$IFNDEF VER3_0}
if Not (ooHumanReadable in OutputOptions) then
begin
With TDOMWriter.Create(Stream,FXML) do
try
LineBreak:='';
IndentSize:=0;
WriteNode(FXML);
finally
Free;
end;
end
else
{$ENDIF}
xmlwrite.WriteXML(FXML,Stream);
FreeAndNil(FXML);
end;