Aha. Then you have identified only one of the many ways in which "identical" XML documents can be represented differently. There's also the optional use of CDATA sections, and there's the possibility of replacing characters by XML character entities. Not to mention optional whitespace which can be inserted in many locations. And interchangeability of quotes and apostrophes to delimit attribute values. And so on. So look into Canonical XML.
Joined: Nov 27, 2009
thank you for (quick) reply. But is there some support for this in some Java library or Java XML framework?