<Document SeqNum="1">
<UserDocNum>1</UserDocNum>
<DocName>CARD DISPUTE PACKET-DEBIT</DocName>
<Institution>149</Institution>
<Indexes>
<Index Name="DOC DATE">08/03/2023</Index>
<Index Name="BRANCH">2</Index>
</Indexes>
I have this XML structure on a file called Synergy.xml I need to add a line after DOCName or Before Institution called Member. It would look like this
<DocName>CARD DISPUTE PACKET-DEBIT</DocName>
<Cabinet>MEMBER</Cabinet>
<Institution>149</Institution>
<Indexes>
<Index Name="DOC DATE">08/03/2023</Index>
<Index Name="BRANCH">2</Index>
</Indexes>
I know I have to select the Parent and there is an insertBefore
I am not good with Powershell especially with XML
Thank you