Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
5269 00 JVCL Components major always 2010-06-23 12:31 2011-06-10 16:10
ldallacqua  
AHUser  
normal  
resolved 3.39  
fixed  
none    
none 3.40  
0005269: JvXMLTree: LoadFromFile not working on CodeGear 2010
When I load a TJvXMLTree from file with CG2010, the strings are loaded wrongly.
It seems a unicode problem in PosStr function.

Try with this portion of code:

uses JvXmlTree;

procedure TForm1.Button1Click(Sender: TObject);
var
   XML: TJvXMLTree;
   N: TJvXMLNode;
begin
   XML := TJvXMLTree.Create('', '', nil);
   try
      XML.LoadFromFile('.\Test.xml');
      N := XML.FindNamedNode('Test');
      if Assigned(N) then
         showmessage(N.Value)
      else
         showmessage('No node Test');
   finally
      XML.Free;
   end;
end;

The XML file is the following:

<FileXML>
   <Test>This is a test string</Test>
</FileXML>

xml file icon Test.xml [^] (60 bytes) 2010-06-23 12:31
Issue History
2010-06-23 12:31 ldallacqua New Issue
2010-06-23 12:31 ldallacqua File Added: Test.xml
2010-06-26 16:12 AHUser Note Added: 0017516
2010-06-26 16:12 AHUser Status new => resolved
2010-06-26 16:12 AHUser Fixed in Version => Daily / SVN
2010-06-26 16:12 AHUser Resolution open => fixed
2010-06-26 16:12 AHUser Assigned To => AHUser
2011-06-10 16:10 obones Fixed in Version Daily / SVN => 3.40

Notes
(0017516)
AHUser   
2010-06-26 16:12   
Fixed in SVN revision 12815.