Hi I am trying to query below Displayname in XML file using powershell
<DeploymentConfiguration PackageId="dce78f0d-d8d4-4a89-9f5d-c37fbf95ee7a" DisplayName="Beyond-Compare-3-3-8" IgnorableNamespaces="" xmlns="http://schemas.microsoft.com/appv/2010/deploymentconfiguration">
I did try
$Xml = Select-Xml -Path "C:\temp\Beyond-Compare-3-3-8_DeploymentConfig.xml" -Namespace $Namespace -XPath "DisplayName="
I get error
Select-Xml : Cannot validate argument on parameter 'Namespace'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again. At line:1 char:191 + ... l" -Namespace $Namespace -XPath "DisplayName=" + ~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Select-Xml], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.SelectXmlCommand