Working with XML in Nintex Workflows (simplified)



You call an XML web service with Nintex Web Service or Web Request actions.  You get back a lot of XML, and it is very difficult to work with the namespaces getting in your way.




1. Do a quick XSLT post processing in the action, remove all the namespaces with XSLT transform.

<xsl:stylesheet xmlns:xsl="" version="1.0">    
<xsl:template match="*">        
    <xsl:element name="{local-name()}">            
    <xsl:apply-templates select="@* | node()" />        
<xsl:template match="@*">        
    <xsl:attribute name="{local-name()}">            
    <xsl:value-of select="." />        
<xsl:template match="text() | comment() | processing-instruction()">
    <xsl:copy />    


2. Force top level XML node.

This ensures if your service returns multiple top level elements they get wrapped together.


3. Use XPath in Query XML Action like this:



Sometimes, after you've wasted half a day working with XML, you just want the simple, no frills, just make it work version.

This will hopefully help you too.


Big thanks to Jumpei Yamauchi for helping me with this one.