Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1396 - XML import skips 1st element.
Summary: XML import skips 1st element.
Status: RESOLVED FIXED
Alias: None
Product: TeeBI for Delphi
Classification: Unclassified
Component: Import (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: david@steema.com
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 09:20 EST by narcís calvet
Modified: 2016-01-04 06:23 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2015-12-15 09:20:09 EST
XML import skips the first row in Product_Orders.xml using code below. It contains 76 elements when it should contain 77. 1st element is not being imported.

procedure TForm4.Button1Click(Sender: TObject);
var path : String;
    import : TBIXML;
    return : TDataArray;
    item : TDataItem;
begin
  path:='C:\TCROOT\TeeBee\Sample Data\Products_Orders.xml';
  try
    import:=TBIXML.CreateEngine(TOmniXML.Create(Self));
    return:=import.ImportFile(path);
    item:=return[0].Items[0];
    G.BindTo(item.Items[0]);
  finally
    import.Free;
  end;

end;

procedure TForm4.FormCreate(Sender: TObject);
begin
  G:=TBIGrid.Create(Self);
  G.Align:=alClient;
  G.Parent:=Panel1;
end;
Comment 1 narcís calvet 2015-12-24 05:41:44 EST
Same happens without OmniXML, for example:

    import:=TBIXML.Create;