code: public boolean isNodeAfter(int nodeHandle1, int nodeHandle2)
    {
  		// These return NULL if the node doesn't belong to this document.
      int index1 = makeNodeIdentity(nodeHandle1);
      int index2 = makeNodeIdentity(nodeHandle2);
  
      return index1!=NULL && index2!=NULL && index1 <= index2;
    }
docs: Figure out whether nodeHandle2 should be considered as being later
  in the document than nodeHandle1, in Document Order as defined
  by the XPath model. This may not agree with the ordering defined
  by other XML applications.
  <p>
  There are some cases where ordering isn't defined, and neither are
  the results of this function -- though we'll generally return false.
  
  @param nodeHandle1 Node handle to perform position comparison on.
  @param nodeHandle2 Second Node handle to perform position comparison on .
  
  @return true if node1 comes before node2, otherwise return false.
  You can think of this as
  <code>(node1.documentOrderPosition &lt;= node2.documentOrderPosition)</code>.