//from https://mbs.microsoft.com/partnersource/documentation/howtoarticles/xmlportswebservices.htm?printpage=false TempBlob.Blob.CREATEOUTSTREAM(OutStreamStylesheet); TempBlob.Blob.CREATEINSTREAM(InStreamStylesheet); OutStreamStylesheet.WRITETEXT('<?xml version="1.0" encoding="UTF-8"?>'); OutStreamStylesheet.WRITETEXT('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">'); OutStreamStylesheet.WRITETEXT('<xsl:output method="xml" encoding="UTF-8" />'); OutStreamStylesheet.WRITETEXT('<xsl:template match="/">'); OutStreamStylesheet.WRITETEXT('<xsl:copy>'); OutStreamStylesheet.WRITETEXT('<xsl:apply-templates />'); OutStreamStylesheet.WRITETEXT('</xsl:copy>'); OutStreamStylesheet.WRITETEXT('</xsl:template>'); OutStreamStylesheet.WRITETEXT('<xsl:template match="*">'); OutStreamStylesheet.WRITETEXT('<xsl:element name="{local-name()}">'); OutStreamStylesheet.WRITETEXT('<xsl:apply-templates select="@* | node()" />'); OutStreamStylesheet.WRITETEXT('</xsl:element>'); OutStreamStylesheet.WRITETEXT('</xsl:template>'); OutStreamStylesheet.WRITETEXT('<xsl:template match="@*">'); OutStreamStylesheet.WRITETEXT('<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>'); OutStreamStylesheet.WRITETEXT('</xsl:template>'); OutStreamStylesheet.WRITETEXT('<xsl:template match="text() | processing-instruction() | comment()">'); OutStreamStylesheet.WRITETEXT('<xsl:copy />'); OutStreamStylesheet.WRITETEXT('</xsl:template>'); //-001 OutStreamStylesheet.WRITETEXT('<xsl:template match="*[normalize-space() = '''']" />'); //+001 OutStreamStylesheet.WRITETEXT('</xsl:stylesheet>'); IF ISCLEAR(XMLStyleSheet) THEN CREATE(XMLStyleSheet); XMLStyleSheet.load(InStreamStylesheet); IF ISCLEAR(XMLDestinationDocument) THEN CREATE(XMLDestinationDocument); XMLSourceDocument.transformNodeToObject(XMLStyleSheet,XMLDestinationDocument);
Answers
https://rockwithnav.wordpress.com/2016/03/29/remove-namespace-web-service-response-dotnet-variable/
https://rockwithnav.wordpress.com/2016/03/29/remove-namespace-web-service-response-automation-variable/
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/