public static function getDOM($str)
	{
		//create domdocument
		$dom = new DOMDocument();
		//load by file or string
		is_file($str) ? $dom->load($str) : $dom->loadXML($str);
		// return the DOMDoc
		return $dom;
	}
public static function getDOM($str)
	{
		//create domdocument
		$dom = new DOMDocument();
		//load by file or string
		is_file($str) ? $dom->load($str) : $dom->loadXML($str);
		// return the DOMDoc
		return $dom;
	}
public static function getDOM ( $ str ) { //create domdocument $ dom = new DOMDocument ( ) ; //load by file or string is_file ( $ str ) ? $ dom -> load ( $ str ) : $ dom -> loadXML ( $ str ) ; // return the DOMDoc return $ dom ; }
return the DOM corresponding to the parameter
@param string $str
@return DOMDocument
return the DOM corresponding to the parameter