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?

New Topic/Question
Reply




MultiQuote


|