protected function canonicalize(\DOMNode $object)
	{		
		$options = $this->c14nOptionMapping[$this->canonicalMethod];
		
		// canonicalize the provided data with the preset options
		$c14nData = $object->C14N($options['exclusive'], $options['withComments']);
		
		if (is_string($c14nData) && strlen($c14nData))
		{
			return $c14nData;
		}
		
		throw new \UnexpectedValueException('Unable to canonicalize the provided DOM document');
	}
protected function canonicalize(\DOMNode $object)
	{		
		$options = $this->c14nOptionMapping[$this->canonicalMethod];
		
		// canonicalize the provided data with the preset options
		$c14nData = $object->C14N($options['exclusive'], $options['withComments']);
		
		if (is_string($c14nData) && strlen($c14nData))
		{
			return $c14nData;
		}
		
		throw new \UnexpectedValueException('Unable to canonicalize the provided DOM document');
	}
protected function canonicalize ( \ DOMNode $ object ) { $ options = $ this -> c14nOptionMapping [ $ this -> canonicalMethod ] ; // canonicalize the provided data with the preset options $ c14nData = $ object -> C14N ( $ options [ 'exclusive' ] , $ options [ 'withComments' ] ) ; if ( is_string ( $ c14nData ) && strlen ( $ c14nData ) ) { return $ c14nData ; } throw new \ UnexpectedValueException ( 'Unable to canonicalize the provided DOM document' ) ; }
Canonicalizes a DOM document or a single DOM node

@param	\DOMNode					$data	Node(s) to be canonicalized
@throws	\UnexpectedValueException			If the canonicalization process failed
@return	string|bool							Canonicalized node(s), or false on failure
Canonicalizes a DOM document or a single DOM node