XmlPeek Task
 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see XmlPeek Task on docs.microsoft.com. Returns values as specified by XPath Query from an XML file.

The following table describes the parameters of the XmlPeek task.

ParameterDescription
NamespacesOptional String parameter.

Specifies the namespaces for the XPath query prefixes.
QueryOptional String parameter.

Specifies the XPath query.
ResultOptional ITaskItem[] output parameter.

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

Specifies the XML input as a string.
XmlInputPathOptional ITaskItem parameter.

Specifies the XML input as a file path.

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.

Tasks
Task Reference