Results of 1 - 10 of about 26 for Chapter (0.002 sec.)
- 次の XPath クエリ用の prefix/ns コンテキストを作成する 12613
- « SimpleXMLElement::next SimpleXMLElement::rewind » PHP Manual SimpleXMLElement 次の XPath クエリ用の prefix/ns コンテキストを作成する 検索 SimpleXMLElement::registerXPathNamespace (PHP 5 >= 5.1.0, PHP 7, PHP 8) SimpleXMLElement::registerXP
... します。 例 例1 XPath クエリで使用する名前空間プレフィックスの設定 <?php $xml = <<<EOD <book xmlns:chap="http://example.org/chapter-title"> <title>My Book</title> <chapter id="1"> <chap:title>Chapter 1</chap:title> <para>Donec velit. Nullam eget tellus v ... ies non, hendrerit et, orci. Nulla facilisi. Nullam velit nisl, laoreet id, condimentum ut, ultricies id, mauris.</para> </chapter> <chapter id="2"> <chap:title>Chapter 2</chap:title> <para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ... odio. Sed dictum. Ut tincidunt lorem ac lorem. Duis eros tellus, pharetra id, faucibus eu, dapibus dictum, odio.</para> </chapter> </book> EOD; $sxe = new SimpleXMLElement ( $xml ); $sxe -> registerXPathNamespace ( 'c' , 'http://example.org/chapter-tit ...
-
https://man.mtool.work/php/8.3/simplexmlelement.registerxpathnamespace.html
- 次の XPath クエリ用の prefix/ns コンテキストを作成する 12613
- « SimpleXMLElement::next SimpleXMLElement::rewind » PHP Manual SimpleXMLElement 次の XPath クエリ用の prefix/ns コンテキストを作成する 検索 SimpleXMLElement::registerXPathNamespace (PHP 5 >= 5.1.0, PHP 7, PHP 8) SimpleXMLElement::registerXP
... します。 例 例1 XPath クエリで使用する名前空間プレフィックスの設定 <?php $xml = <<<EOD <book xmlns:chap="http://example.org/chapter-title"> <title>My Book</title> <chapter id="1"> <chap:title>Chapter 1</chap:title> <para>Donec velit. Nullam eget tellus v ... ies non, hendrerit et, orci. Nulla facilisi. Nullam velit nisl, laoreet id, condimentum ut, ultricies id, mauris.</para> </chapter> <chapter id="2"> <chap:title>Chapter 2</chap:title> <para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin ... odio. Sed dictum. Ut tincidunt lorem ac lorem. Duis eros tellus, pharetra id, faucibus eu, dapibus dictum, odio.</para> </chapter> </book> EOD; $sxe = new SimpleXMLElement ( $xml ); $sxe -> registerXPathNamespace ( 'c' , 'http://example.org/chapter-tit ...
-
https://man.mtool.work/php/8.3/simplexmlelement.registerxpathnamespace.html
- 子要素群から子要素を削除する 10315
- « DOMNode::normalize DOMNode::replaceChild » PHP Manual DOMNode 子要素群から子要素を削除する 検索 DOMNode::removeChild (PHP 5, PHP 7, PHP 8) DOMNode::removeChild — 子要素群から子要素を削除する 説明 public function DOMNode::removeChild ( DOM
... 場合に発生します。 DOM_NOT_FOUND_ERR child がこのノードの子要素でない場合に発生します。 例 以下の例は、XML ドキュメントから chapter 要素を削除します。 例1 子要素の削除 <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ); $book = $ ... doc -> documentElement ; // chapter を取得し、それを book から削除します $chapter = $book -> getElementsByTagName ( 'chapter' )-> item ( 0 ); $oldchapter = $b ... ook -> removeChild ( $chapter ); echo $doc -> saveXML (); ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE book P ...
-
https://man.mtool.work/php/8.3/domnode.removechild.html
- 子要素群から子要素を削除する 10315
- « DOMNode::normalize DOMNode::replaceChild » PHP Manual DOMNode 子要素群から子要素を削除する 検索 DOMNode::removeChild (PHP 5, PHP 7, PHP 8) DOMNode::removeChild — 子要素群から子要素を削除する 説明 public function DOMNode::removeChild ( DOM
... 場合に発生します。 DOM_NOT_FOUND_ERR child がこのノードの子要素でない場合に発生します。 例 以下の例は、XML ドキュメントから chapter 要素を削除します。 例1 子要素の削除 <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ); $book = $ ... doc -> documentElement ; // chapter を取得し、それを book から削除します $chapter = $book -> getElementsByTagName ( 'chapter' )-> item ( 0 ); $oldchapter = $b ... ook -> removeChild ( $chapter ); echo $doc -> saveXML (); ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE book P ...
-
https://man.mtool.work/php/8.3/domnode.removechild.html
- DOMDocument オブジェクト内の XIncludes を置換する 9026
- « DOMDocument::validate DOMDocumentFragment » PHP Manual DOMDocument DOMDocument オブジェクト内の XIncludes を置換する 検索 DOMDocument::xinclude (PHP 5, PHP 7, PHP 8) DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する
... 換が発生しなかった場合は false を返します。 例 例1 DOMDocument::xinclude() の例 <?php $xml = <<<EOD <?xml version="1.0" ?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <xi:include href="examples/book ... .xml"> <xi:fallback> <error>xinclude: book.xml not found</error> </xi:fallback> </xi:include> </para> </chapter> EOD; $dom = new DOMDocument ; // 見た目をきれいにします $dom -> preserveWhiteSpace = false ; $dom -> formatOutput = true ... ます $dom -> xinclude (); echo $dom -> saveXML (); ?> 上の例の出力は、 たとえば以下のようになります。 <?xml version="1.0"?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <row xml:base="/home/didou/book ...
-
https://man.mtool.work/php/8.3/domdocument.xinclude.html
- DOMDocument オブジェクト内の XIncludes を置換する 9026
- « DOMDocument::validate DOMDocumentFragment » PHP Manual DOMDocument DOMDocument オブジェクト内の XIncludes を置換する 検索 DOMDocument::xinclude (PHP 5, PHP 7, PHP 8) DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する
... 換が発生しなかった場合は false を返します。 例 例1 DOMDocument::xinclude() の例 <?php $xml = <<<EOD <?xml version="1.0" ?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <xi:include href="examples/book ... .xml"> <xi:fallback> <error>xinclude: book.xml not found</error> </xi:fallback> </xi:include> </para> </chapter> EOD; $dom = new DOMDocument ; // 見た目をきれいにします $dom -> preserveWhiteSpace = false ; $dom -> formatOutput = true ... ます $dom -> xinclude (); echo $dom -> saveXML (); ?> 上の例の出力は、 たとえば以下のようになります。 <?xml version="1.0"?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <row xml:base="/home/didou/book ...
-
https://man.mtool.work/php/8.3/domdocument.xinclude.html
- インストール手順 8563
- « インストール/設定 LiteSpeed 関数 » PHP Manual インストール/設定 インストール手順 検索 インストール手順 For PHP installation on LiteSpeed see the installation chapter . 関連キーワード: LiteSpeed installation chapter
...
-
https://man.mtool.work/php/8.3/litespeed.installation.html
- インストール手順 8497
- « インストール/設定 LiteSpeed 関数 » PHP Manual インストール/設定 インストール手順 検索 インストール手順 For PHP installation on LiteSpeed see the installation chapter . 関連キーワード: インストール 手順 LiteSpeed installation Search see chapter
...
-
https://man.mtool.work/php/8.3/litespeed.installation.html
- 例 8414
- « 定義済み定数 DOMAttr » PHP Manual DOM 例 検索 例 このリファレンスの多くの例で、XMLファイルが必要です。 私たちは、次のような形式の book.xml を使用します。 例1 book.xml <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS/
... L V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ ]> <book id="listing"> <title>My lists</title> <chapter id="books"> <title>My books</title> <para> <informaltable> <tgroup cols="4"> <thead> <row> <entry>Title</entry> <entry>Aut ... 51209</entry> </row> <!-- TODO: I have a lot of remaining books to add.. --> </tbody> </tgroup> </informaltable> </para> </chapter> </book> 関連キーワード: entry row book xml title books open id My chapter para informaltable tgroup thead tbody John Stei ...
-
https://man.mtool.work/php/8.3/dom.examples.html
- 属性が定義済みの ID かどうかを調べる 8331
- « Dom\Attr Dom\Attr::rename » PHP Manual Dom\Attr 属性が定義済みの ID かどうかを調べる 検索 Dom\Attr::isId (PHP 8 >= 8.4.0) Dom\Attr::isId — 属性が定義済みの ID かどうかを調べる 説明 public function Dom\Attr::isId (): bool この関数は、属性が
... Document :: createFromFile ( 'examples/book-docbook.xml' , LIBXML_DTDVALID ); // We retrieve the attribute named id of the chapter element $attr = $doc -> getElementsByTagName ( 'chapter' )-> item ( 0 )-> getAttributeNode ( 'id' ); var_dump ( $attr -> i ... sId ()); // bool(true) ?> 関連キーワード: Dom Attr 属性 isId id bool パラメータ true We doc chapter attr Search rename function 必要 メソッド 解析 ドキュメント 検証 ...
-
https://man.mtool.work/php/8.3/dom-attr.isid.html