src/XML/Namespaces.php
public function detectNamespacesFromXml( $xml )
	{
		$namespaces	= self::getNamespacesFromXml( $xml );
		$this->namespaces	= array_merge( $this->namespaces, $namespaces );
		return count( $namespaces );
	}
public function detectNamespacesFromXml( $xml )
	{
		$namespaces	= self::getNamespacesFromXml( $xml );
		$this->namespaces	= array_merge( $this->namespaces, $namespaces );
		return count( $namespaces );
	}
public function detectNamespacesFromXml ( $ xml ) { $ namespaces = self :: getNamespacesFromXml ( $ xml ) ; $ this -> namespaces = array_merge ( $ this -> namespaces , $ namespaces ) ; return count ( $ namespaces ) ; }
Detects Namespaces from a XML File and returns Number of found Namespaces.
@access		public
@param		DOMDocument			$doc			DOM Document of XML File
@return		void
Detects Namespaces from a XML File and returns Number of found Namespaces .