on 2023 Mar 08 2:29 PM
Request clarification before answering.
Hi Sabana
As ryan.crosby2 points out, this problem is a very good match for XSLT. This short stylesheet inserts the extra elements:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
<xsl:mode on-no-match="shallow-copy"/>
<xsl:template match="GroupValue">
<xsl:copy>
<xsl:apply-templates/>
<CommercialParameters>
<ProductComponent>Dummy</ProductComponent>
</CommercialParameters>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mortten,
which tool do you use to play around XSLT mapping and do you have any specific go to knowledge base for learning more about XSLT mapping.
Regards,
Sai Krishna V
Hi Sabana,
You can use appendNode method.
GroupValue.appendNode {
ProductComponent('Dummy')
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.