What I do wrong?
I get XPath set is empty when run the following command.
xmllint --xpath './/PackageReference[@Include="Tips"]/Version/text()' sdk/Test/TestSample.xml
Please find below the xml file content.
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Tips">
<Version>2.2.2</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Hips">
<Version>1.1.1</Version>
</PackageReference>
</ItemGroup>
</Project>
xml
command ? – Corbin