Fixing JIRA Bug #1127: http://issues.apache.org/jira/browse/XERCESJ-1127
Fixing JIRA Bug #1127:
http://issues.apache.org/jira/browse/XERCESJ-1127

TreeWalker can be used with DOM implementations other than Xerces. If the nodes
in the DOM implementation are proxies they are only be comparable using isSameNode().
If the DOM implemenation supports DOM Level 3 and isn't the Xerces implementation
we now call isSameNode() to support such a scenario.

git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@371588 13f79535-47bb-0310-9956-ffa450edef68

ronsigal/xerces,jimma/xerces,ronsigal/xerces,RackerWilliams/xercesj,jimma/xerces,ronsigal/xerces,RackerWilliams/xercesj,jimma/xerces,RackerWilliams/xercesj