Diff files, ignore nodes by XPath
Posted: Thu Aug 31, 2017 11:26 pm
Another question about the diff files tool (despite the minor issues I've reported, I'm finding it extremely useful).
I'm comparing two HTML files, which I know have only trivial differences in the <img> element @alt attribute value, so I'd like Diff to ignore <img> elements.
I have added "//img" to the "Ignore nodes by XPath" box, but the elements are still highlighted as different:
https://www.dropbox.com/s/0b4aounguan3y ... 4.png?dl=0
Have I entered the XPath expression incorrectly? (And how would I enter multiple nodes to be ignored?)
I'm comparing two HTML files, which I know have only trivial differences in the <img> element @alt attribute value, so I'd like Diff to ignore <img> elements.
I have added "//img" to the "Ignore nodes by XPath" box, but the elements are still highlighted as different:
https://www.dropbox.com/s/0b4aounguan3y ... 4.png?dl=0
Have I entered the XPath expression incorrectly? (And how would I enter multiple nodes to be ignored?)