<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="extensions" page="functions" subpage="hassamenodes"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:has-same-nodes()</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: saxon:has-same-nodes()"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:has-same-nodes()</h1>
      <p><b>saxon:has-same-nodes($nodes-1 as node()*, $nodes-2 as node()*) ==&gt; xs:boolean</b></p>
      <p>This function returns a boolean that is true if and only if $nodes-1 and $nodes-2 contain the same
sequence of nodes in the same order. Nodes are compared by identity, not by content.
 Note this is quite different from the "=" operator, which tests
 whether there is a pair of nodes with the same string-value, and the deep-equal() function, which compares
 nodes pairwise but by content.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="hexbinarytooctets.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>