Bug fixes
This commit is contained in:
@@ -37,6 +37,11 @@ uses
|
|||||||
|
|
||||||
const
|
const
|
||||||
Eol = #10;
|
Eol = #10;
|
||||||
|
|
||||||
|
function Convert(s : string) : string;
|
||||||
|
begin
|
||||||
|
Result := StringReplace(s, '&', '&', [rfReplaceAll]);
|
||||||
|
end;
|
||||||
|
|
||||||
type
|
type
|
||||||
TXMLWriter = class(TObject)
|
TXMLWriter = class(TObject)
|
||||||
@@ -133,13 +138,13 @@ end;
|
|||||||
|
|
||||||
procedure TXMLWriter.StartParam(Elem : PArgument);
|
procedure TXMLWriter.StartParam(Elem : PArgument);
|
||||||
begin
|
begin
|
||||||
FList.Add(Format('<PARAM NAME="%s" TYPE="%s"\>', [Elem^.aName, Elem^.aType]));
|
FList.Add(Format('<PARAM NAME="%s" TYPE="%s"/>', [Elem^.aName, Convert(Elem^.aType)]));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TXMLWriter.StartResult(aType : PChar);
|
procedure TXMLWriter.StartResult(aType : PChar);
|
||||||
begin
|
begin
|
||||||
if aType <> nil then
|
if aType <> nil then
|
||||||
FList.Add(Format('<RESULT TYPE="%s"\>', [aType]));
|
FList.Add(Format('<RESULT TYPE="%s"/>', [Convert(aType)]));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@@ -193,8 +198,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
XMLWriter.StartResult(Current^.ret_type);
|
XMLWriter.StartResult(Current^.ret_type);
|
||||||
XMLWriter.EndFunction;
|
XMLWriter.EndFunction;
|
||||||
end;
|
end;
|
||||||
XMLWriter.EndFunction;
|
|
||||||
XMLWriter.EndClasse;
|
XMLWriter.EndClasse;
|
||||||
XMLWriter.EndClasses;
|
XMLWriter.EndClasses;
|
||||||
finally
|
finally
|
||||||
@@ -202,4 +206,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
free_tables;
|
free_tables;
|
||||||
end;
|
end;
|
||||||
end.
|
end.
|
||||||
|
|||||||
Reference in New Issue
Block a user