I added an Export metadata to the flow and that creates an xml file looking like this:
Code: Select all
<field Id="spMF_6_2">
<tag>Korrketur</tag>
<type>boolean</type>
<value>true</value>
<field-list>
<field Id="spMF_7_2">
<tag>Mailadress kund</tag>
<type>string</type>
<required>true</required>
<value>x.y@domain.com</value>
</field>
<field Id="spMF_8_2">
<tag>Projektledare</tag>
<type>choice</type>
<value>John Doe</value>
</field>
</field-list>
</field>
Code: Select all
<proof>true</proof>
<customer_mail>x.y@domain.com</customer_mail>
<csr_mail>John Doe</csr_mail>
<next_value>
Is it possible to somehow make <customer_mail> and <csr_mail> child nodes of <proof>?
I.e. to have the xml look like this:
Code: Select all
<proof>true</proof>
<customer_mail>x.y@domain.com</customer_mail>
<csr_mail>John Doe</csr_mail>
<next_value>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="1.0">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<job>
...
<proof>
<xsl:value-of select="//value[parent::node()/tag='Korrektur']"/>
</proof>
<customer_mail>
<xsl:value-of select="//value[parent::node()/tag='Mailadress kund']"/>
</customer_mail>
<csr_mail>
<xsl:value-of select="//value[parent::node()/tag='Projektledare']"/>
</csr_mail>
...
</job>
</xsl:template>
</xsl:stylesheet>