Query XML


Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

The Query XML activity is used to perform an XPath query on an XML file. You can use this activity to search for a string in an XML file.

Before you configure the Query XML activity, you need to determine the following:

  • The XML file name or Block of XML that you want to search.

  • The query you will use to perform the search.

Use the following information to configure the Query XML activity.

Details Tab

SettingsConfiguration Instructions
XML FileSelect either this option or the XML Text option. Type the path or URL of the XML file that you want to search in, or click the ellipsis button (...) and browse for it.
XML TextSelect either this option or the XML File option. Type the name of the element in the XML text that you want to search in.
XPath QueryType the XPath query for your search.

Published Data

The following table lists the published data items.

Escaped Query ResultThe result of the query.
Escaped XML AttributesThe attributes found in the element tag of the query result.
The input XML fileThe name of the XML file that you are searching in. This item is blank if you used the Block of XML option.
The input XML textThe XML text that you searched in. This item is blank if you used the XML File option.
The XPath query.The XPath query that was used in the search.
Node countThe number of results published from the query.