We can only switch once we get past the last node created by the builder. If we switch when we reach that node, then the information returned may be inaccurate because the node may have been modified.

As a side effect of the fix we no longer need to look ahead one node (at least not in SwitchingWrapper; OMNavigator still fetches the next node). This greatly simplifies the code.


git-svn-id: https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/axiom@1432754 13f79535-47bb-0310-9956-ffa450edef68