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 |
& | & |
< | < |
> | > |
" | " |
' | ' |
You only need to escape quotation characters (single or double) within attributes. For example:
<filter inputvariable="queryResult"
filterexpr="/customers[capitalization > 125]"
outputvariable="midRange"/>
<directinvoke
method="GET"
outputvariable="result"
endpoint="http://www.mySearch.com?q='java'&v='2.1'" />