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

Summary: XML import skips 1st element.
Product: TeeBI for Delphi Reporter: narcís calvet <narcis>
Component: ImportAssignee: david@steema.com <davidberneda>
Status: RESOLVED FIXED    
Severity: major    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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;