Use & Sign in '@(...)' Expressions

Q

How to enter & sign in '@(...)' expressions?

✍: FYIcenter.com

A

& signs can be entered in '@(...)' expressions directly.

For example, the following "set-variable" policy statement uses a "@(...)" expression that contains a & sign:

<set-variable name="name" value="@("John & Sons")" />

From XML syntax point of view, the above XML element is actually not valid.

But Azure.com has no problem take the above XML statement.

It could be that Azure.com is processing the @(...) expression first, before processing the XML element.

 

Use &amp; in '@(...)' Expressions

Use < Sign in '@(...)' Expressions

Using Azure API Policy

⇑⇑ Microsoft Azure API Management Tutorials

2017-11-12, 2544🔥, 0💬