0 Replies - 460 Views - Last Post: 09 June 2012 - 10:45 AM Rate Topic: -----

#1 progc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 04-February 10

XML Delphi binging problem. Cannot import node data.

Posted 09 June 2012 - 10:45 AM

Hello!

I want to import data from XML file to delphi and i am getting error: interface not supported, as I click the button on form.

XML:
 <?xml version="1.0" encoding="utf-8" ?> 
- <transport>
- <productions>
- <production number="1201047" ordernumber="1201476" productiondate="2012-07-31" description="" status="UUS" stockcode="PL" quantity="2000">



For example to show ordernumber i wrote code
procedure TForm1.Button1Click(Sender: TObject);
var
  transp : IXMLTransport;
begin
    transp := Gettransport(XMLDocument1);
    ShowMessage(IntToStr(transp.Productions.Production[2].Ordernumber));
end;



I think that the binding of XML with DTD was successful because delphi editor recognizes the hierarchy of nodes. Am I using the Ordernumber in ShowMessage correctly?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1