You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/logic-apps/workflow-definition-language-functions-reference.md
+24-21Lines changed: 24 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4838,10 +4838,7 @@ And returns this result XML:
4838
4838
4839
4839
### xpath
4840
4840
4841
-
Check XML for nodes or values that match an XPath (XML Path Language) expression,
4842
-
and return the matching nodes or values. An XPath expression, or just "XPath",
4843
-
helps you navigate an XML document structure so that you can select nodes
4844
-
or compute values in the XML content.
4841
+
Check XML for nodes or values that match an XPath (XML Path Language) expression, and return the matching nodes or values. An XPath expression, or just "XPath", helps you navigate an XML document structure so that you can select nodes or compute values in the XML content.
4845
4842
4846
4843
```
4847
4844
xpath('<xml>', '<xpath>')
@@ -4862,8 +4859,7 @@ xpath('<xml>', '<xpath>')
4862
4859
4863
4860
*Example 1*
4864
4861
4865
-
This example finds nodes that match the `<name></name>` node
4866
-
in the specified arguments, and returns an array with those node values:
4862
+
This example finds nodes that match the `<name></name>` node in the specified arguments, and returns an array with those node values:
For this example, both expressions find nodes that match the
4900
-
`<location></location>` node, in the specified arguments,
4901
-
which include XML with a namespace. The expressions use the backslash
4902
-
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
+
>
4897
+
> If you're working in code view, escape the double quotation mark (") by using the backslash character (\\).
4898
+
> For example, you need to use escape characters when you serialize an expression as a JSON string.
4899
+
> However, if you're working in the Logic App Designer or expression editor, you don't need to escape the
4900
+
> double quotation mark because the backslash character is added automatically to the underlying definition, for example:
0 commit comments