Skip to content

Commit 7448b2b

Browse files
authored
Add note about when to use escape characters
1 parent 2e09cef commit 7448b2b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

articles/logic-apps/workflow-definition-language-functions-reference.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,8 +4869,7 @@ Here are the arguments:
48694869

48704870
`"<?xml version="1.0"?> <produce> <item> <name>Gala</name> <type>apple</type> <count>20</count> </item> <item> <name>Honeycrisp</name> <type>apple</type> <count>10</count> </item> </produce>"`
48714871

4872-
The example uses the [parameters()](#parameters) function to get
4873-
the XML string from the "items" argument, but must also convert
4872+
The example uses the [parameters()](#parameters) function to get the XML string from the "items" argument, but must also convert
48744873
the string to XML format by using the [xml()](#xml) function.
48754874

48764875
* This XPath expression, which is passed as a string:
@@ -4891,7 +4890,16 @@ And returns this result: `30`
48914890

48924891
*Example 3*
48934892

4894-
For this example, both expressions find nodes that match the `<location></location>` node, in the specified arguments, which include XML with a namespace. The expressions use the backslash character (\\) as an escape character for the double quotation mark (").
4893+
For this example, both expressions find nodes that match the `<location></location>` node, in the specified arguments, which include XML with a namespace.
4894+
4895+
> ![NOTE]
4896+
> If you're working in code view, escape the double quotation mark (") by using the backslash character (\).
4897+
> If you're working in the expression editor, you don't need to escape the double quotation mark. For example:
4898+
>
4899+
> Code view: `xpath(xml(body('Http')), '/*[name()=\"file\"]/*[name()=\"location\"]')`
4900+
> Expression editor: `xpath(xml(body('Http')), '/*[name()="file"]/*[name()="location"]')`
4901+
>
4902+
> The following examples apply to expressions that you enter in the expression editor.
48954903
48964904
* *Expression 1*
48974905

0 commit comments

Comments
 (0)