Changeset 91 for branches/DirectWeb/UXMLClasses.pas
- Timestamp:
- Dec 21, 2009, 1:19:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DirectWeb/UXMLClasses.pas
r90 r91 70 70 I: Integer; 71 71 begin 72 Attributes.Free; 73 for I := 0 to SubElements.Count - 1 do TXmlElement(SubElements[I]).Free; 74 SubElements.Free; 72 Attributes.Destroy; 73 for I := 0 to SubElements.Count - 1 do 74 TXmlElement(SubElements[I]).Destroy; 75 SubElements.Destroy; 75 76 inherited; 76 77 end; … … 116 117 begin 117 118 inherited; 118 Encoding := ' windows-1250';119 Encoding := 'utf-8'; 119 120 XmlVersion := '1.0'; 120 121 MainTag := TXmlTag.Create; … … 123 124 EndTagSymbol := '?'; 124 125 Attributes.Add('version=1.0'); 125 Attributes.Add('encoding= windows-1250');126 Attributes.Add('encoding=utf-8'); 126 127 end; 127 128 Content := TXmlTag.Create; … … 130 131 destructor TXmlDocument.Destroy; 131 132 begin 132 Content. Free;133 MainTag. Free;133 Content.Destroy; 134 MainTag.Destroy; 134 135 inherited; 135 136 end;
Note:
See TracChangeset
for help on using the changeset viewer.