Hi, This is a working Code, if you are using XML, But your question Title suggest ( Compare text files ) , and your shared sample talking about XML and your comments are talking about jason.
What you are looking for ? and where you have an error. could you please share the same.
This code is working but i do not want the value mismatches in it.I need only the node name mismatches.