![]() | Steema Issues DatabaseNote: 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. |
| Summary: | XML import skips 1st element. | ||
|---|---|---|---|
| Product: | TeeBI for Delphi | Reporter: | narcís calvet <narcis> |
| Component: | Import | Assignee: | 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: | |
Same happens without OmniXML, for example:
import:=TBIXML.Create;
|
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;