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


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



& 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 has no problem take the above XML statement.

It could be that 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, 2306🔥, 0💬