3 ms·
That's very interesting. Why is auto-generated XML hard to diff?
by _pi 17y ago
That's very interesting. Why is auto-generated XML hard to diff?
- superchink 17y agoThat's because XML does not guarantee order of elements.
- jamesbritt 17y ago"That's because XML does not guarantee order of elements." It better, or else it's broken. In XML, element order matters. Attribute order does not.
- atourino 17y agoConsider an XML file consisting of one long line of text. A diff would not be very useful in that case.
- michaelneale 17y agoI guess an XML aware diff could work though? certainly not at all line based...
- jamesbritt 17y agoIf it did node-based diffs.
- _pi 17y agoMost diffs do that. The Diff that ships with gvim on Windows has this option on by default and I couldn't find where to turn it off because it was severely screwing up what I was diffing.