I am comparing two XML Strings but want to delete some specific attribute element before comparing them.
I want to remove <orderby> attribute element and all data within these tags
XML 1:
<query> <selecttables> <field> <tablerscd>1014</tablerscd> <tablename> OEM IHS Engines</tablename> </field> <orderby> </orderby> </selecttables> </query> XML 2:
<query> <selecttables> <field> <tablerscd>1014</tablerscd> <tablename> OEM IHS Engines</tablename> </field> <orderby> <columnrscd>1228</columnrscd> <columnrscd>1229</columnrscd> </orderby> </selecttables> </query> My Question is:
How can i remove <orderby> attribute and all data within these tags before I compare them.
<orderby>is an element, not an attribute.