Tools, FAQ, Tutorials:
Use '@(...)' Expressions in XML Attributes
When using "@(...)" expressions in XML attributes as part of an policy statement, do I need to worry about string quotations?
✍: FYIcenter.com
If you are using a "@(...)" expression in XML attributes as part of an policy statement,
and string literals are used in the "@(...)" expression, the syntax of
the final policy statement is confusing:
For example, the following "set-variable" policy statement uses a "@(...)" expression as part of an attribute value to set a new variable to be used later:
<set-variable name="message" value="@("Hello world!")" />
From XML syntax point of view, the above XML element is actually not valid. Because the XML attribute value can not have nested quotes.
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 < Sign in '@(...)' Expressions
2017-11-12, ∼3558🔥, 0💬
Popular Posts:
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two...
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to add request body examples to my Azure API operation to make it more user friendly? If you hav...
How to use "xml-to-json" Azure API Policy Statement? The "xml-to-json" Policy Statement allows you t...