Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002634 [JEDI VCL] 00 JVCL Components major always 2005-02-13 05:08 2005-02-13 07:13
Reporter remkobonte View Status public  
Assigned To obones
Priority normal Resolution fixed Platform
Status resolved   OS
Projection none   OS Version
ETA none Fixed in Version 3.00 Product Version
  Target Version Product Build
Summary 0002634: Unable to write strings that contain <,> or & chars with TJvAppXMLFileStorage
Description Code:

var
  S: string;
begin
  with TJvAppXMLFileStorage.Create(nil) do
  try
    FileName := 'temp';
    Xml.Options := Xml.Options + [sxoAutoEncodeValue, sxoAutoEncodeEntity];
    WriteString('\path1', '<TEST>');
  finally
    Free;
  end;

  with TJvAppXMLFileStorage.Create(nil) do
  try
    FileName := 'temp';
    Reload;
    Xml.Options := Xml.Options + [sxoAutoEncodeValue, sxoAutoEncodeEntity];
    S := ReadString('\path1');
    ShowMessage(S);
    // Exp: S = '<TEST>'
    // Act: Error
  finally
    Free;
  end;
end;
Steps To Reproduce
Additional Information Possible fix:

Change all

  Xml.Options := [sxoAutoCreate, sxoAutoIndent];
  [..]
  Xml.Options := [sxoAutoIndent];

code in JvAppXMLStorage.pas to

  Xml.Options := Xml.Options + [sxoAutoCreate];
  [..]
  Xml.Options := Xml.Options - [sxoAutoCreate];
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006480)
obones (administrator)
2005-02-13 07:13

Thanks for the feedback, this is now fixed in CVS.
I have introduced three new properties in the StorageOptions:
AutoEncodeValue
AutoEncodeEntity
AutoIndent

That have an impact on the options of the internal XML file, as their name suggest.
I also surfaced the OnEncode and OnDecode events from TJvSimpleXML, shall someone want to use them.
The online help has also been updated

- Issue History
Date Modified Username Field Change
2005-02-13 05:08 remkobonte New Issue
2005-02-13 07:13 obones Status new => resolved
2005-02-13 07:13 obones Fixed in Version => 3.00
2005-02-13 07:13 obones Resolution open => fixed
2005-02-13 07:13 obones Assigned To => obones
2005-02-13 07:13 obones Note Added: 0006480


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