I tried to open the XMLPort after it has been created and just add a line with outstream but now there is a codepage problem. Using outstream to write into UTF-8 files does not work.
Navision XML Ports & Style sheets,namespaces, XSD's and other XML goodness don't work together very well.
I would suggest that you use the XML DOM Object to insert your changes into the XML stream just before you write or save it. If you're unfamiliar with working the XML DOM I would suggest you check out the XML DOM Management (Codeunit 6224) for some examples.
Comments
I tried to open the XMLPort after it has been created and just add a line with outstream but now there is a codepage problem. Using outstream to write into UTF-8 files does not work.
Any assistance is appreciated.
I would suggest that you use the XML DOM Object to insert your changes into the XML stream just before you write or save it. If you're unfamiliar with working the XML DOM I would suggest you check out the XML DOM Management (Codeunit 6224) for some examples.
Epimatic Corp.
http://www.epimatic.com