Skip to content

Commit f0af211

Browse files
committed
removing reference
1 parent bc9e1b3 commit f0af211

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

articles/data-factory/control-flow-expression-language-functions.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3174,39 +3174,14 @@ xpath('<xml>', '<xpath>')
31743174

31753175
*Example 1*
31763176

3177-
This example finds nodes that match the `<name></name>` node
3178-
in the specified arguments, and returns an array with those node values:
3179-
3180-
`xpath(xml(parameters('items')), '/produce/item/name')`
3181-
3182-
Here are the arguments:
3183-
3184-
* The "items" string, which contains this XML:
3185-
3186-
`"<?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>"`
3187-
3188-
The example uses the [parameters()](#parameters) function to get
3189-
the XML string from the "items" argument, but must also convert
3190-
the string to XML format by using the [xml()](#xml) function.
3191-
3192-
* This XPath expression, which is passed as a string:
3193-
3194-
`"/produce/item/name"`
3195-
3196-
Here is the result array with the nodes that match `<name></name`:
3197-
3198-
`[ <name>Gala</name>, <name>Honeycrisp</name> ]`
3199-
3200-
*Example 2*
3201-
32023177
Following on Example 1, this example finds nodes that match the
32033178
`<count></count>` node and adds those node values with the `sum()` function:
32043179

32053180
`xpath(xml(parameters('items')), 'sum(/produce/item/count)')`
32063181

32073182
And returns this result: `30`
32083183

3209-
*Example 3*
3184+
*Example 2*
32103185

32113186
For this example, both expressions find nodes that match the
32123187
`<location></location>` node, in the specified arguments,
@@ -3241,7 +3216,7 @@ Here is the result node that matches the `<location></location>` node:
32413216
<location xmlns="https://contoso.com">Paris</location>
32423217
```
32433218

3244-
*Example 4*
3219+
*Example 3*
32453220

32463221
Following on Example 3, this example finds the value in the
32473222
`<location></location>` node:

0 commit comments

Comments
 (0)