<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                該擴展使用Expat XML解析器。 Expat是一種基于事件的解析器,它把XML文檔視為一系列事件。當某個事件發生時,它調用一個指定的函數處理它。 Expat是無驗證的解析器,忽略任何鏈接到文檔的DTD。但是,如果文檔的形式不好,則會以一個錯誤消息結束。 由于它是一種基于事件,并且無驗證的解析器,因此具有快速并適合Web應用程序的特性。 XML解析器函數允許您創建XML解析器,并為XML事件定義句柄。 它支持 PHP 所提供的 3 種[字符編碼](https://www.php.net/manual/zh/xml.encoding.php):*US-ASCII*,*ISO-8859-1*和*UTF-8*。 不支持*UTF-16*。 此擴展可[創建 XML 解析器](https://www.php.net/manual/zh/function.xml-parser-create.php)并為不同的 XML 事件定義*處理程序(handler)*。 每個 XML 解析器還存在少數可以調節的[參數](https://www.php.net/manual/zh/function.xml-parser-set-option.php)。 需求: 此擴展需要[libxml](https://www.php.net/manual/zh/book.libxml.php)PHP 擴展 默認情況下,此擴展使用expat compat layer。也可使用expat, 此庫位于[??http://www.jclark.com/xml/expat.html](http://www.jclark.com/xml/expat.html)Expat是一種基于事件的解析器 安裝: 這些函數默認為有效的,使用了捆綁的 expat 庫。您可以通過參數 **--disable-xml** 來屏蔽 XML 的支持。如果您將 PHP 編譯為 Apache 1.3.9 或更高版本的一個模塊, PHP 將自動使用 Apache 捆綁的expat庫。如果您不希望使用該捆綁的 expat 庫,請在運行 PHP 的 configure 配置腳本時使用參數 **--with-expat-dir=DIR** ,其中 DIR 應該指向 expat 安裝的根目錄。 PHP 的 Windows 版本已內建對此擴展的支持。不需要載入額外的擴展來使用這些函數 ## 解析器函數 * [utf8\_decode](https://www.php.net/manual/zh/function.utf8-decode.php)— 將用 UTF-8 方式編碼的 ISO-8859-1 字符串轉換成單字節的 ISO-8859-1 字符串。 * [utf8\_encode](https://www.php.net/manual/zh/function.utf8-encode.php)— 將 ISO-8859-1 編碼的字符串轉換為 UTF-8 編碼 * [xml\_error\_string](https://www.php.net/manual/zh/function.xml-error-string.php)— 獲取 XML 解析器的錯誤字符串 * [xml\_get\_current\_byte\_index](https://www.php.net/manual/zh/function.xml-get-current-byte-index.php)— 獲取 XML 解析器的當前字節索引 * [xml\_get\_current\_column\_number](https://www.php.net/manual/zh/function.xml-get-current-column-number.php)— 獲取 XML 解析器的當前列號 * [xml\_get\_current\_line\_number](https://www.php.net/manual/zh/function.xml-get-current-line-number.php)— 獲取 XML 解析器的當前行號 * [xml\_get\_error\_code](https://www.php.net/manual/zh/function.xml-get-error-code.php)— 獲取 XML 解析器錯誤代碼 * [xml\_parse\_into\_struct](https://www.php.net/manual/zh/function.xml-parse-into-struct.php)— 將 XML 數據解析到數組中 ~~~ $simple = '<para><note>simple note</note></para>'; $p = xml_parser_create(); xml_parse_into_struct($p, $simple, $vals, $index); xml_parser_free($p); echo "Index array\n"; print_r($index); echo "\nVals array\n"; print_r($vals); ~~~ 輸出: ~~~ Index array Array ( [PARA] => Array ( [0] => 0 [1] => 2 ) [NOTE] => Array ( [0] => 1 ) ) Vals array Array ( [0] => Array ( [tag] => PARA [type] => open [level] => 1 ) [1] => Array ( [tag] => NOTE [type] => complete [level] => 2 [value] => simple note ) [2] => Array ( [tag] => PARA [type] => close [level] => 1 ) ) ~~~ * [xml\_parse](https://www.php.net/manual/zh/function.xml-parse.php)— 開始解析一個 XML 文檔 * [xml\_parser\_create\_ns](https://www.php.net/manual/zh/function.xml-parser-create-ns.php)— 生成一個支持命名空間的 XML 解析器 * [xml\_parser\_create](https://www.php.net/manual/zh/function.xml-parser-create.php)— 建立一個 XML 解析器 * [xml\_parser\_free](https://www.php.net/manual/zh/function.xml-parser-free.php)— 釋放指定的 XML 解析器 * [xml\_parser\_get\_option](https://www.php.net/manual/zh/function.xml-parser-get-option.php)— 從 XML 解析器獲取選項設置信息 * [xml\_parser\_set\_option](https://www.php.net/manual/zh/function.xml-parser-set-option.php)— 為指定 XML 解析進行選項設置 * [xml\_set\_character\_data\_handler](https://www.php.net/manual/zh/function.xml-set-character-data-handler.php)— 建立字符數據處理器 * [xml\_set\_default\_handler](https://www.php.net/manual/zh/function.xml-set-default-handler.php)— 建立默認處理器 * [xml\_set\_element\_handler](https://www.php.net/manual/zh/function.xml-set-element-handler.php)— 建立起始和終止元素處理器 * [xml\_set\_end\_namespace\_decl\_handler](https://www.php.net/manual/zh/function.xml-set-end-namespace-decl-handler.php)— 建立終止命名空間聲明處理器 * [xml\_set\_external\_entity\_ref\_handler](https://www.php.net/manual/zh/function.xml-set-external-entity-ref-handler.php)— 建立外部實體指向處理器 * [xml\_set\_notation\_decl\_handler](https://www.php.net/manual/zh/function.xml-set-notation-decl-handler.php)— 建立注釋聲明處理器 * [xml\_set\_object](https://www.php.net/manual/zh/function.xml-set-object.php)— 在對象中使用 XML 解析器 * [xml\_set\_processing\_instruction\_handler](https://www.php.net/manual/zh/function.xml-set-processing-instruction-handler.php)— 建立處理指令(PI)處理器 * [xml\_set\_start\_namespace\_decl\_handler](https://www.php.net/manual/zh/function.xml-set-start-namespace-decl-handler.php)— 建立起始命名空間聲明處理器 * [xml\_set\_unparsed\_entity\_decl\_handler](https://www.php.net/manual/zh/function.xml-set-unparsed-entity-decl-handler.php)— 建立未解析實體定義聲明處理器
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看