Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in EMML | Expressions for Mashups | XML Escaping in URLs and Expressions
 
XML Escaping in URLs and Expressions
XPath expressions, URLs, SQL expressions or other values appear in EMML statements or in the XML requests built in the Service Inspector view. All of these expressions can contain characters that are XML delimiters and thus can cause mashups to fail or cause problems testing services in Service Inspector.
As a consequence, the following XML delimiter characters must be escaped in EMML or in input parameters in Service Inspector:
Character
XML Escape
&
&
<
&lt;
>
&gt;
"
&quot;
'
&apos;
You only need to escape quotation characters (single or double) within attributes. For example:

<filter inputvariable="queryResult"
filterexpr="/customers[capitalization &gt; 125]"
outputvariable="midRange"/>

<directinvoke
method="GET"
outputvariable="result"
endpoint="http://www.mySearch.com?q='java'&amp;v='2.1'" />

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release