u can run the XML port through codeunit only.
you can use the follwing code
Exportfile.CREATE('SalesInvoice.xml');
Exportfile.CREATEOUTSTREAM(OSTREAM);
XMLPORT.RUN(99999,OSTREAM);
EXPORTFILE.CLOSE;
Where ExportFile ia a file variable and OStream is an outstream variable.
99999 is the object id of XMLport that u want to run.
SalesInvoice will be the name of XML file.
Comments
you can use the follwing code
Exportfile.CREATE('SalesInvoice.xml');
Exportfile.CREATEOUTSTREAM(OSTREAM);
XMLPORT.RUN(99999,OSTREAM);
EXPORTFILE.CLOSE;
Where ExportFile ia a file variable and OStream is an outstream variable.
99999 is the object id of XMLport that u want to run.
SalesInvoice will be the name of XML file.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Mistakenly I have written that.
Actually u can run the XML port through codeunits or other objects but can not be run directly.