Compare XML to TXT C#

Cerigueme

New Member
I am looking for a way to compare the entire contents of a specified text file to a certain branch of an XML file's contents, and have the console output either a 1 or 0 depending on if the two match. The part of the xml I would like to compare looks like:\[code\]-<root>-<Info><Seperator>DATA TO BE COMPARED</Seperator></Info>\[/code\]The XML has more data below it, but I only want to compare this line to the text file. eg. if the xml file contained "test" in the column, and all the text file had written in it was "test" it would output a 1, but it the xml said "test" and the text file said "test123" it would not.The closest thing I have found to this is: http://stackoverflow.com/questions/794331/xml-comparison-in-c-sharp to compare two txt file.
 
Back
Top