Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002633 [JEDI VCL] 00 JVCL Components major always 2005-02-12 16:04 2005-02-13 09:26
Reporter remkobonte View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version
Summary 0002633: TJvAppXMLFileStorage.DeleteSubTree does not work for top level nodes.
Description Code:
 
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 Information Possible solution (not tested):

TJvCustomAppXMLStorage.DeleteSubTreeInt

    [..]
    if Assigned(Parent) then
      Parent.Items.Delete(Name);
    else
      Node.Clear;
    [..]
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006482)
obones (administrator)
2005-02-13 09:26

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker