Using powershell how do I get the list of attributeNames.
<productSettings>
<productGroups>
<productGroup attributeName1="1"
attributeName2="1"
attributeName3="xyz"
attributeName4="0"/>
</productGroups>
</productSettings>
When I try to use the Atrributes property I get the attribute values not the name of the attribute
[xml]$config = Get-Content 'C:\\ProductGroup.config'
$configNodes = $config.productSettings.productGroups.ChildNodes
foreach($configNode in $configNodes)
{
$configNode.Attributes
}