Use the XML importer which gives 3 global functions:
· function Getdoc(Doc: IXMLDocument): IXMLDocType; · function Loaddoc(const FileName: string): IXMLDocType; · function Newdoc: IXMLDocType; No need to use RIO (Remote Invocation Object) here. Cheers D David Moorhouse (BCom) | Principal Software Engineer - HealthOne Pegasus Health (Charitable) Ltd P: 03 353 0871 | W: www.pegasus.org.nz<http://www.pegasus.org.nz/> E: [email protected]<mailto:[email protected]> PO Box 741, Christchurch 8140 160 Bealey Ave, Christchurch 8014 [cid:[email protected]] From: [email protected] [mailto:[email protected]] On Behalf Of Jeremy Coulter Sent: Tuesday, 12 April 2016 10:45 a.m. To: NZ Borland Developers Group - Delphi List Subject: [DUG] Importing XML Into THTTPRIO? Hi all. A while back I created a class based on a SOAP XML. Doc. Basically what I need to do is by-pass the THTTPRIO call to the SOAP server and "import" an XML file that has some XML data in it that was retrieved by the THTTPRIO call. The idea is that I say, "here is a file, import then process it then give me the value for 'X'". When I look at the code, I see the following in the code in the function that does the RIO call: Result := (RIO as MyPortType); MyPortType is: MyPortType = interface(IInvokable) so, is there a way I can basically open a file, and assign it to an object of the above so I can access the data? I hope I am being clear :-) Thanks, Jeremy ******************************************************************************** This email or attachment(s) may contain confidential or legally privileged information intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or reproduction of this message, except as intended, is prohibited. If you received this email in error, please notify the sender and erase all copies of the message, including any attachments. Any views or opinions expressed in this email (unless otherwise stated) may not represent those of Pegasus Health Ltd. ********************************************************************************
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [email protected] with Subject: unsubscribe
