public static function newDocumentFileXML($file, $charset = null) { $contentType = $charset ? ";charset={$charset}" : ''; return self::newDocumentFile($file, "text/xml{$contentType}"); }
public function loadWP() { if (file_exists($this->wpPath)) { phpQuery::newDocumentFileXML($this->wpPath); $itemArr = pq("channel item"); phpQuery::each($itemArr, "WordPress::parseWpItem"); } else { $this->_error = "wordpress.xml文件不存在"; } }