How to add stylesheet info in XML-Port export?

annarannar Member Posts: 24
Hi!


I want to do a simple thing and add the following line as a 2nd line in the XML-port export:
<?xml-stylesheet type="text/xml" href="STYLE.xsl"?>

So far I haven't figured out of how to do that in the Nav 4.03 XMLPort.

Any ideas?

Comments

  • annarannar Member Posts: 24
    I assume noone has run into this problem before.

    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.
  • jlandeenjlandeen Member Posts: 524
    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.
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
Sign In or Register to comment.