Search code examples
biztalkbiztalk-mapper

Create Processing Instruction in BizTalk Map


I know that in BizTalk maps, you can perserve processing instructions. However, the source XML that I will have will not have any processing instructions. However, I will need to create a processing instruction for the Target XML. I know I can write a custom XSLT to do this, however I would like to avoid that as I have the BizTalk map complete except for this.

Can I create processing instructions on the Target XML using only the available functoids in the BizTalk mapper?


Solution

  • Other than using XSLT as you've mentioned, there is also an option to do this on the send port:

    • Select the native XmlTransmit send pipeline
    • Add your processing instructions to the XmlAsmProcessingInstructions property as per this example