I have two Xml files, I will call the first one Input Xml and the second one Template Xml. The Template Xml is a static Xml and I want to verify if the Template Xml is a subset of the Input Xml. How do I achieve this in C#?
By subset I mean that I want to verify if the Xml Tags and Attributes mentioned in the Template Xml are present in the Input Xml with the same values.
use xpath to query both XML files and compare their value.
you can find reference to xpath on the following link: http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm