private static function doCheckSimilarContent($oContent1, $oContent2, $bTestAttributesValues = true) { if (!$oContent1) { throw new AnwUnexpectedException("checkSimilarContent : oContent1 is null"); } if (!$oContent2) { throw new AnwUnexpectedException("checkSimilarContent : oContent2 is null"); } if (!AnwXml::xmlSimilarStructure($oContent1->toXml(), $oContent2->toXml(), $bTestAttributesValues, true)) { /*print '<hr/>'; print 'Content1:'.htmlentities($oContent1->toXmlString()); print '<br/>***<br/>'; print 'Content2:'.htmlentities($oContent2->toXmlString());*/ throw new AnwUnexpectedException("Content desynchronization detected on checkSimilarContent"); } }