I am facing a problem. I want to get a specific idstring of product node from XML content.
Example:
Run $xml.group.product[0].id it returns 1234/5678
But I just want a $variable="1234" to match id = "1234/5678" to get or return a index of array ofproduct node
How can I do that?
$xml=[xml]@"
<?xml version="1.0" encoding="UTF-8"?>
<group>
<product description="phone" id="1234/5678">
<item name="apple" version="50" />
<item name="banana" version="100" />
</product>
<product description="notebook" id="6666/7777">
<item name="orange" version="150" />
</product>
</group>
"@