<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                這是XMLWriter擴展。它封裝了libxml xmlWriter API 此擴展需要[libxml](https://www.php.net/manual/zh/book.libxml.php)PHP 擴展(默認開啟) * [XMLWriter :: endAttribute](https://www.php.net/manual/en/function.xmlwriter-end-attribute.php)—結束屬性 * [XMLWriter :: endCdata](https://www.php.net/manual/en/function.xmlwriter-end-cdata.php)—結束當前的CDATA * [XMLWriter :: endComment](https://www.php.net/manual/en/function.xmlwriter-end-comment.php)—創建結束注釋 * [XMLWriter :: endDocument](https://www.php.net/manual/en/function.xmlwriter-end-document.php)—結束當前文檔 * [XMLWriter :: endDtdAttlist](https://www.php.net/manual/en/function.xmlwriter-end-dtd-attlist.php)—結束當前DTD AttList * [XMLWriter :: endDtdElement](https://www.php.net/manual/en/function.xmlwriter-end-dtd-element.php)—結束當前DTD元素 * [XMLWriter :: endDtdEntity](https://www.php.net/manual/en/function.xmlwriter-end-dtd-entity.php)—結束當前DTD實體 * [XMLWriter :: endDtd](https://www.php.net/manual/en/function.xmlwriter-end-dtd.php)—結束當前DTD * [XMLWriter :: endElement](https://www.php.net/manual/en/function.xmlwriter-end-element.php)—結束當前元素 * [XMLWriter :: endPi](https://www.php.net/manual/en/function.xmlwriter-end-pi.php)—結束當前PI * [XMLWriter :: flush](https://www.php.net/manual/en/function.xmlwriter-flush.php)—刷新當前緩沖區 * [XMLWriter :: fullEndElement](https://www.php.net/manual/en/function.xmlwriter-full-end-element.php)—結束當前元素 * [XMLWriter :: openMemory](https://www.php.net/manual/en/function.xmlwriter-open-memory.php)—使用內存用于字符串輸出創建新的xmlwriter * [XMLWriter :: openUri](https://www.php.net/manual/en/function.xmlwriter-open-uri.php)—使用源uri創建新的xmlwriter以進行輸出 * [XMLWriter :: outputMemory](https://www.php.net/manual/en/function.xmlwriter-output-memory.php)—返回當前緩沖區 * [XMLWriter :: setIndentString](https://www.php.net/manual/en/function.xmlwriter-set-indent-string.php)—設置用于縮進的字符串 * [XMLWriter :: setIndent](https://www.php.net/manual/en/function.xmlwriter-set-indent.php)—啟用/禁用縮進 * [XMLWriter :: startAttributeNs](https://www.php.net/manual/en/function.xmlwriter-start-attribute-ns.php)—創建開始命名空間的屬性 * [XMLWriter :: startAttribute](https://www.php.net/manual/en/function.xmlwriter-start-attribute.php)—創建開始屬性 * [XMLWriter :: startCdata](https://www.php.net/manual/en/function.xmlwriter-start-cdata.php)—創建開始CDATA標記 * [XMLWriter :: startComment](https://www.php.net/manual/en/function.xmlwriter-start-comment.php)—創建開始注釋 * [XMLWriter :: startDocument](https://www.php.net/manual/en/function.xmlwriter-start-document.php)—創建文檔標簽 * [XMLWriter :: startDtdAttlist](https://www.php.net/manual/en/function.xmlwriter-start-dtd-attlist.php)—創建開始DTD AttList * [XMLWriter :: startDtdElement](https://www.php.net/manual/en/function.xmlwriter-start-dtd-element.php)—創建開始DTD元素 * [XMLWriter :: startDtdEntity](https://www.php.net/manual/en/function.xmlwriter-start-dtd-entity.php)—創建開始DTD實體 * [XMLWriter :: startDtd](https://www.php.net/manual/en/function.xmlwriter-start-dtd.php)—創建開始DTD標記 * [XMLWriter :: startElementNs](https://www.php.net/manual/en/function.xmlwriter-start-element-ns.php)—創建開始命名空間的元素標簽 * [XMLWriter :: startElement](https://www.php.net/manual/en/function.xmlwriter-start-element.php)—創建開始元素標簽 * [XMLWriter :: startPi](https://www.php.net/manual/en/function.xmlwriter-start-pi.php)—創建開始PI標簽 * [XMLWriter :: text](https://www.php.net/manual/en/function.xmlwriter-text.php)—編寫文本 * [XMLWriter :: writeAttributeNs](https://www.php.net/manual/en/function.xmlwriter-write-attribute-ns.php)—寫入完整的命名空間屬性 * [XMLWriter :: writeAttribute](https://www.php.net/manual/en/function.xmlwriter-write-attribute.php)—寫完整屬性 * [XMLWriter :: writeCdata](https://www.php.net/manual/en/function.xmlwriter-write-cdata.php)—寫入完整的CDATA標記 * [XMLWriter :: writeComment](https://www.php.net/manual/en/function.xmlwriter-write-comment.php)—寫完整的注釋標簽 * [XMLWriter :: writeDtdAttlist](https://www.php.net/manual/en/function.xmlwriter-write-dtd-attlist.php)—編寫完整的DTD AttList標記 * [XMLWriter :: writeDtdElement](https://www.php.net/manual/en/function.xmlwriter-write-dtd-element.php)—編寫完整的DTD元素標簽 * [XMLWriter :: writeDtdEntity](https://www.php.net/manual/en/function.xmlwriter-write-dtd-entity.php)—編寫完整的DTD實體標簽 * [XMLWriter :: writeDtd](https://www.php.net/manual/en/function.xmlwriter-write-dtd.php)—寫入完整的DTD標記 * [XMLWriter :: writeElementNs](https://www.php.net/manual/en/function.xmlwriter-write-element-ns.php)—編寫完整的命名空間元素標簽 * [XMLWriter :: writeElement](https://www.php.net/manual/en/function.xmlwriter-write-element.php)—寫完整元素標簽 * [XMLWriter :: writePi](https://www.php.net/manual/en/function.xmlwriter-write-pi.php)—[編寫](https://www.php.net/manual/en/function.xmlwriter-write-pi.php)一個PI * [XMLWriter :: writeRaw](https://www.php.net/manual/en/function.xmlwriter-write-raw.php)—編寫原始XML文本 例子: ``` class XmlConstruct extends XMLWriter { /** * Constructor. * @param string $prm_rootElementName A root element's name of a current xml document * @param string $prm_xsltFilePath Path of a XSLT file. * @access public * @param null */ public function __construct($prm_rootElementName, $prm_xsltFilePath=''){ $this->openMemory(); $this->setIndent(true); $this->setIndentString(' '); $this->startDocument('1.0', 'UTF-8'); if($prm_xsltFilePath){ $this->writePi('xml-stylesheet', 'type="text/xsl" href="'.$prm_xsltFilePath.'"'); } $this->startElement($prm_rootElementName); } /** * Set an element with a text to a current xml document. * @access public * @param string $prm_elementName An element's name * @param string $prm_ElementText An element's text * @return null */ public function setElement($prm_elementName, $prm_ElementText){ $this->startElement($prm_elementName); $this->text($prm_ElementText); $this->endElement(); } /** * Construct elements and texts from an array. * The array should contain an attribute's name in index part * and a attribute's text in value part. * @access public * @param array $prm_array Contains attributes and texts * @return null */ public function fromArray($prm_array){ if(is_array($prm_array)){ foreach ($prm_array as $index => $element){ if(is_array($element)){ $this->startElement($index); $this->fromArray($element); $this->endElement(); } else $this->setElement($index, $element); } } } /** * Return the content of a current xml document. * @access public * @param null * @return string Xml document */ public function getDocument(){ $this->endElement(); $this->endDocument(); return $this->outputMemory(); } /** * Output the content of a current xml document. * @access public * @param null */ public function output(){ header('Content-type: text/xml'); echo $this->getDocument(); } } Example: $contents = array( 'page_title' => 'Generate a XHTML page from XML+XSLT files', 'welcome_msg' => 'Simple XHTML document from XML+XSLT files!', 'prova' => array( "gino" => array( "innergino" => "gino inner value" ), "filo" => "filodata" ), ); $XmlConstruct = new XmlConstruct('root'); $XmlConstruct->fromArray($contents); $XmlConstruct->output(); ```
                  <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>

                              哎呀哎呀视频在线观看