How to parse this XML and append in QTreeWidget?
Code:
<?xml version="1.0" encoding="utf-8"?>
<relation version="1.0">
<Friends>
<first name="ravi"></first >
<display name="ravi kumar"></display>
</Friends>
<Friends>
<first name="balaji "></first >
<display name="arun balajir"></display>
</Friends>
<Friends>
<first name="kumar"></first >
<display name="kokki kumar"></display>
</Friends>
</relation >
How to parse this xml and retrieve first name and display name. And I want to show only display name in QTreeWidget and if user clicks on the display name, the value to be used should be corresponding first name.. How to achieve this??
Re: How to parse this XML and append in QTreeWidget?