Ignore:
Timestamp:
Nov 21, 2010, 8:49:46 AM (14 years ago)
Author:
george
Message:
  • Upraveno: Zbylé výskyty TStringListEx nahrazeny TListString a TDictionaryStringString.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/UXmlClasses.pas

    r40 r42  
    55interface
    66
    7 uses Classes, SysUtils, StrUtils, UStringListEx, SpecializedObjectList;
     7uses Classes, SysUtils, StrUtils, SpecializedList, SpecializedObjectList,
     8  SpecializedDictionary;
    89
    910type
     
    2930    ShringEmpty: Boolean;
    3031    Name: string;
    31     Attributes: TStringListEx;
     32    Attributes: TDictionaryStringString;
    3233    SubElements: TListObject; // TListObject<TXmlElement>;
    3334    constructor Create;
     
    5758begin
    5859  ShringEmpty := True;
    59   Attributes := TStringListEx.Create;
    60   Attributes.NameValueSeparator := '=';
     60  Attributes := TDictionaryStringString.Create;
    6161  SubElements := TListObject.Create;
    6262  EndTagSymbol := '/';
     
    8282  AttributesText := '';
    8383  for I := 0 to Attributes.Count - 1 do
    84     AttributesText := AttributesText + ' ' + Attributes.Names[I] + '="' + Attributes.ValueFromIndex[I] + '"';
     84    AttributesText := AttributesText + ' ' + Attributes.Keys[I] + '="' + Attributes[I].Value + '"';
    8585
    8686  if Name <> '' then begin
     
    116116    Name := '?xml';
    117117    EndTagSymbol := '?';
    118     Attributes.AddNameValue('version', '1.0');
    119     Attributes.AddNameValue('encoding', 'utf-8');
     118    Attributes.Add('version', '1.0');
     119    Attributes.Add('encoding', 'utf-8');
    120120  end;
    121121  Content := TXmlTag.Create;
Note: See TracChangeset for help on using the changeset viewer.