mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:59:24 +02:00
* Use exposed TDOMWriter to create reduced XML (non-humanreadable)
git-svn-id: trunk@41664 -
This commit is contained in:
parent
4dd27d4d03
commit
492c0d58d8
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user