I have a long string extracted from an XML file which I've dumped to notepad++. Below is a snippet of that XML. These are 3 rows of data and I need to clean this up. What I want is to create a dataset with final output SAPClient 1 RCLNT Ledger 2 RLDNR CompanyCode 3 RBUKRS
As you can probably figure out, I need the values from attribute id, order and columnName fields. I was unsure of how to do this. But thought to use notepad++ regular expression feature. I thought I would group the fields I need and replace as \1 \2 \3 but I am not so good yet on this. The below regex is where I am at right now which selects the first row of each xml attribute. But am not going further and am running out of ideas. Please help.
REGEX: (<attribute\sid="[a-zA-Z0-9]+").+
XML:
`<attribute id="SAPClient" order="1" attributeHierarchyActive="false" displayAttribute="false">
<descriptions defaultDescription="SAP Client"/>
<searchProperties/>
<keyMapping columnObjectName="Join_2" columnName="RCLNT"/>
</attribute>
<attribute id="Ledger" order="2" attributeHierarchyActive="false" displayAttribute="false">
<descriptions defaultDescription="Ledger"/>
<searchProperties/>
<keyMapping columnObjectName="Join_2" columnName="RLDNR"/>
</attribute>
<attribute id="CompanyCode" order="3" attributeHierarchyActive="false" displayAttribute="false">
<descriptions defaultDescription="Company Code"/>
<searchProperties/>
<keyMapping columnObjectName="Join_2" columnName="RBUKRS"/>
</attribute>`