« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 17 for endElement (0.001 sec.)
XMLWriter::endElement — 現在の要素を終了する | PHP 8.3 13104
XMLWriter::endElement xmlwriter_end_element (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::endElement -- xmlwriter_end_element — 現在の要素を終了する 説明 オブジェクト指向型 public function XMLWriter::endElement (): bool ...
https://man.mtool.work/php/8.3/xmlwriter.endelement.html
XMLWriter::writeCdata — CDATA タグ全体を書き込む | PHP 8.3 11742
XMLWriter::writeCdata xmlwriter_write_cdata (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::writeCdata -- xmlwriter_write_cdata — CDATA タグ全体を書き込む 説明 オブジェクト指向型 public function XMLWriter::writeCdata ( st ... ; // CData output $xml -> startElement ( 'mycdataelement' ); $xml -> writeCData ( "text for inclusion as CData" ); $xml -> endElement (); // end the document and output $xml -> endElement (); $xml -> endElement (); echo $xml -> outputMemory ( true ); ?> 上 ...
https://man.mtool.work/php/8.3/xmlwriter.writecdata.html
XML エレメント構造の例 | PHP 8.3 10397
XML エレメント構造の例 この最初の例は、あるドキュメント中のstart エレメントの構造をイン デントを付けて表示します。 例1 XML エレメント構造を表示 <?php $file = "examples/book.xml" ; $depth = 0 ; function startElement ( $parser , $name , $attr ... s ) { global $depth ; for ( $i = 0 ; $i < $depth ; $i ++) { echo " " ; } echo " $name \n" ; $depth ++; } function endElement ( $parser , $name ) { global $depth ; $depth --; } $xml_parser = xml_parser_create (); xml_set_element_handler ( $xml_pars ... er , "startElement" , "endElement" ); if (!( $fp = fopen ( $file , "r" ))) { die( "could not open XML input" ); } while ( $data = fread ( $fp , 4096 )) { if ...
https://man.mtool.work/php/8.3/example.xml-structure.html
クラスを使ってXMLをパースする | PHP 8.3 9949
クラスを使ってXMLをパースする この例は、どのようにクラスをハンドラと一緒に使うかを示しています。 例1 Show XML Element Structure <?php $file = "examples/book.xml" ; class CustomXMLParser { private $fp ; private $parser ; private $depth = 0 ; ... } $this -> parser = xml_parser_create (); xml_set_element_handler ( $this -> parser , self :: startElement (...), self :: endElement (...)); xml_set_character_data_handler ( $this -> parser , self :: cdata (...)); } private function startElement ( $parser ... rs ) { for ( $i = 0 ; $i < $this -> depth ; $i ++) { echo " " ; } echo " $name \n" ; $this -> depth ++; } private function endElement ( $parser , $name ) { $this -> depth --; } private function cdata ( $parse , $cdata ) { if ( trim ( $cdata ) === '' ) { re ...
https://man.mtool.work/php/8.3/example.xml-parsing-with-class.html
XMLタグのマッピングの例 | PHP 8.3 9724
XMLタグのマッピングの例 例1 XMLをHTMLにマップする この例は、XMLドキュメントのタグを直接HTMLタグにマップします。 "map array" にないエレメントは無視されます。もちろん、この例は、 特定の XML ドキュメント型を有する場合のみ動作します。 <?php $fi ... $name , $attrs ) { global $map_array ; if (isset( $map_array [ $name ])) { echo "< $map_array [ $name ] >" ; } } function endElement ( $parser , $name ) { global $map_array ; if (isset( $map_array [ $name ])) { echo "</ $map_array [ $name ] >" ; } } funct ... ser_set_option ( $xml_parser , XML_OPTION_CASE_FOLDING , true ); xml_set_element_handler ( $xml_parser , "startElement" , "endElement" ); xml_set_character_data_handler ( $xml_parser , "characterData" ); if (!( $fp = fopen ( $file , "r" ))) { die( "could n ...
https://man.mtool.work/php/8.3/example.xml-map-tags.html
オブジェクト指向 API の使用 | PHP 8.3 8604
オブジェクト指向 API の使用 この例では、XMLWriter のオブジェクト指向 API を使う方法を示します。 例1 オブジェクト指向 API の使用 <?php $xw = new XMLWriter (); $xw -> openMemory (); $xw -> startDocument ( "1.0" ); $xw -> startElement ( "book" ... ); $xw -> text ( "example" ); $xw -> endElement (); $xw -> endDocument (); echo $xw -> outputMemory (); 上の例の出力は以下となります。 <?xml version="1.0"?> <book>example ...
https://man.mtool.work/php/8.3/example.xmlwriter-oop.html
XMLWriter クラス | PHP 8.3 8155
XMLWriter クラス (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) はじめに クラス概要 class XMLWriter { /* メソッド */ public function endAttribute (): bool public function endCdata (): bool public function endComment (): bool public ... nction endDtdAttlist (): bool public function endDtdElement (): bool public function endDtdEntity (): bool public function endElement (): bool public function endPi (): bool public function flush ( bool $empty = true ): string | int public function fullEnd ... MLWriter::endDtdElement — 現在の DTD 要素を終了する XMLWriter::endDtdEntity — 現在の DTD エンティティを終了する XMLWriter::endElement — 現在の要素を終了する XMLWriter::endPi — 現在の PI (処理命令) を終了する XMLWriter::flush — 現在のバッファをフラッシュする ... XMLWriter::fullEndElement — 現在の要素を終了する XMLWriter::openMemory — 文字列の出力にメモリを使用する新しい xmlwriter を作成する XMLWriter::openUr ...
https://man.mtool.work/php/8.3/class.xmlwriter.html
XML 外部エンティティの例 | PHP 8.3 8155
XML 外部エンティティの例 この例は、XML コードに焦点を当てます。この例は、他のドキュメント をインクルードし処理するための外部エンティティリファレンスのハン ドラの使用法およびPIの処理方法、PIが含むコードに関する"信頼度" を定義する手段を説明し ... $v ) { echo " <font color=\"#009900\"> $k </font>=\"<font color=\"#990000\"> $v </font>\"" ; } } echo "&gt;" ; } function endElement ( $parser , $name ) { echo "&lt;/<font color=\"#0000cc\"> $name </font>&gt;" ; } function characterData ( $parser , $data ... parser_set_option ( $xml_parser , XML_OPTION_CASE_FOLDING , 1 ); xml_set_element_handler ( $xml_parser , "startElement" , "endElement" ); xml_set_character_data_handler ( $xml_parser , "characterData" ); xml_set_processing_instruction_handler ( $xml_parser ...
https://man.mtool.work/php/8.3/example.xml-external-entity.html
XMLWriter::fullEndElement — 現在の要素を終了する | PHP 8.3 7707
XMLWriter::fullEndElement xmlwriter_full_end_element (PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL xmlwriter >= 2.0.4) XMLWriter::fullEndElement -- xmlwriter_full_end_element — 現在の要素を終了する 説明 オブジェクト指向型 public function XMLWriter::f ... ullEndElement (): bool 手続き型 function xmlwriter_full_end_element ( XMLWriter $writer ): bool 現在の xml 要素を終了します。要素が空であ ... iter のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。 参考 XMLWriter::endElement() - 現在の要素を終了する 他のマニュアルの関連ページ DuckDB Indexing Python c-api-pending-removal-in-3.18 Python csv ...
https://man.mtool.work/php/8.3/xmlwriter.fullendelement.html
XMLWriter::startElement — 要素の開始タグを作成する | PHP 8.3 7707
XMLWriter::startElement xmlwriter_start_element (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::startElement -- xmlwriter_start_element — 要素の開始タグを作成する 説明 オブジェクト指向型 public function XMLWriter::startEl ... iter のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。 参考 XMLWriter::endElement() - 現在の要素を終了する XMLWriter::writeElement() - 要素タグ全体を書き込む 他のマニュアルの関連ページ DuckDB Indexing Pyt ...
https://man.mtool.work/php/8.3/xmlwriter.startelement.html
PREV 1 2 NEXT