Pester Testcase for xml data

<mainheading>
<ruled>
<ruleid=1’ title=‘m’>
</ruled>
</mainheading>

I have one xml file having following structure.Aim is to design pester testcase in powershell which take ruleid as input from this xml and verify corresponding to this ruleid value=hklm\logsize exists or not.

@sneha Welcome to PowerShell.org forums.

Can you explain a little more about what you are trying to do with a sample code if you already have.

pester testcase i want to create in powershell file by taking input from this existing xml .

Please share the code you have where you are facing issue with.