View Issue Details

IDProjectCategoryView StatusLast Update
0002633JEDI VCL00 JVCL Componentspublic2005-02-13 09:26
ReporterremkobonteAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.00 
Summary0002633: TJvAppXMLFileStorage.DeleteSubTree does not work for top level nodes.
DescriptionCode:
 
var
  S: string;
begin
  with TJvAppXMLFileStorage.Create(nil) do
  try
    FileName := 'temp.xml';
    WriteString('\path1\path2', 'test');
    DeleteSubTree('');
    S := ReadString('\path1\path2');
    // Exp: S = ''
    // Act: S = 'test'
  finally
    Free;
  end;
end;

It works for TJvAppIniFileStorage.
Additional InformationPossible solution (not tested):

TJvCustomAppXMLStorage.DeleteSubTreeInt

    [..]
    if Assigned(Parent) then
      Parent.Items.Delete(Name);
    else
      Node.Clear;
    [..]
TagsNo tags attached.

Activities

obones

2005-02-13 09:26

administrator   ~0006482

Thanks, this is now solved in CVS.

Issue History

Date Modified Username Field Change
2005-02-12 16:04 remkobonte New Issue
2005-02-13 09:26 obones Status new => resolved
2005-02-13 09:26 obones Fixed in Version => 3.00
2005-02-13 09:26 obones Resolution open => fixed
2005-02-13 09:26 obones Assigned To => obones
2005-02-13 09:26 obones Note Added: 0006482