XmlPeek Task

Note

This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.

Returns values as specified by XPath Query from an XML file.

Parameters

The following table describes the parameters of the XmlPeek task.

Parameter Description
Namespaces Optional String parameter.

Specifies the namespaces for the XPath query prefixes.
Query Optional String parameter.

Specifies the XPath query.
Result Optional ITaskItem[] output parameter.

Contains the results that are returned by this task.
XmlContent Optional String parameter.

Specifies the XML input as a string.
XmlInputPath Optional ITaskItem parameter.

Specifies the XML input as a file path.

Remarks

In addition to having the parameters that are listed in the table, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.

See Also

Tasks
Task Reference