The New-XPathQueryGroup cmdlet create a new group of query objects that can be used to create an XPath expression using , or an element in an XPath query group using . The resulting can be passed as a parameter to . An XPath query group contains one or more objects or other XPathQueryGroup objects.
Required. Specifies the logical operator to use when comparing queries within the group. The support values are And and Or
Queries
Required. One or more query objects generated with the or cmdlets
Examples
Viewing the query group string
The New-XPathQueryGroup does not return a usable query itself. It returns only a part of the query that is used in an XPath expression. You can view the query component itself as shown in the following example.