web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Need to remove Envelope node from xml

(0) ShareShare
ReportReport
Posted on by 141

Hi,

Thanks in advance for helping.

 I need to make changes into the outbound XML generation of electronic VendPayment. Since their bank was not able to accept the current format of the XML generated from AX.

The XML includes Envelope and Header tags with output XML as shown in below screenshotXML-with-env-tag.png

so i need to remove that extra tags highlighted above. and xml should look like belowXML-without-ENV-tag.png

i have done some changes in xslt as suggested in below link

http://msdynamicsguys.blogspot.in/2013/08/modify-xml-using-xsl-outbound-transform.html

but not succeed. 

so anyone have idea that what change do i need to do in XSLT file so that above tags gets removed.

Thanks

Hemesh

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Krishnachvr Profile Picture
    39 on at
    RE: Need to remove Envelope node from xml

    It worked with below as per Himesh:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:wt="">schemas.microsoft.com/.../Message"
    xmlns:xsl="">www.w3.org/.../Transform">
    <xsl:output version="1.0" omit-xml-declaration="no" indent="yes" encoding="UTF-8" method="xml"/>
    <!--Copy all nodes from source-->
    <xsl:template match="@*|node()"><xsl:copy>
    <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
    </xsl:template>
    <!--Remove header, message parts, body and envelope tags-->
    <xsl:template match="wt:Envelope/wt:Header"/>
    <xsl:template match="wt:Envelope/wt:Body/wt:MessageParts">
    <xsl:apply-templates/>
    </xsl:template><xsl:template match="wt:Envelope/wt:Body">
    <xsl:apply-templates/>
    </xsl:template><xsl:template match="wt:Envelope">
    <xsl:apply-templates/>
    </xsl:template>
    </xsl:stylesheet>

  • Martin Dráb Profile Picture
    235,961 Most Valuable Professional on at
    RE: Need to remove Envelope node from xml

    Can you elaborate your problem, please? "Not succeed" isn't a very detailed description.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans