I have some very big XML files with
<Frequency>14400</Frequency>
It can be anywhere in files, because all files have different schema, so I can't search with pre-defined XPath.
All I need is to find all nodes with Frequency <= 14400 and show XPath to it
Good example is code I copy here, but instead of PATH I need XPath.
Any solutions?
Get-ChildItem -Recurse |
Select-String -Pattern ">60<" |
group Path |
select Name
c:\temp\xml.xml :::: /ManagementPack/Monitoring/Discoveries/Discovery/DataSource/Frequency 60 c:\temp\xml2.xml :::: /ManagementPack/Monitoring/Discoveries/Discovery/DataSource/Frequency 100