View Issue Details

IDProjectCategoryView StatusLast Update
0005269JEDI VCL00 JVCL Componentspublic2011-06-10 16:10
ReporterldallacquaAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.39 
Target VersionFixed in Version3.40 
Summary0005269: JvXMLTree: LoadFromFile not working on CodeGear 2010
DescriptionWhen 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>

TagsNo tags attached.

Activities

2010-06-23 12:31

 

Test.xml (60 bytes)

AHUser

2010-06-26 16:12

developer   ~0017516

Fixed in SVN revision 12815.

Issue History

Date Modified Username Field Change
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