Hi all,
I need to compare two xml files.So far i tried using QDomDocument and QDomNode:perator() == but i failed since the book properties can be in any order.All i need to do is compare both file and say they are same or not.For example:-
File1.xml
<Book class="B1" name="ABC">
<property name="Price">
<int>85</int>
</property>
<property name="author">
<string>Hypo</string>
</property>
</widget>
<Book class="B1" name="ABC">
<property name="Price">
<int>85</int>
</property>
<property name="author">
<string>Hypo</string>
</property>
</widget>
To copy to clipboard, switch view to plain text mode
File2.xml
<Book class="B1" name="ABC">
<property name="Price">
<int>85</int>
</property>
<property name="author">
<string>Hypo</string>
</property>
</widget>
<Book class="B1" name="ABC">
<property name="Price">
<int>85</int>
</property>
<property name="author">
<string>Hypo</string>
</property>
</widget>
To copy to clipboard, switch view to plain text mode
Can anyone guide me on this.How can i proceed?
Bookmarks