Bug fixes

This commit is contained in:
ocoursiere
2002-10-03 21:19:04 +00:00
parent 791041fe7b
commit de6b15b7b3

View File

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