update : 2015.11.03
php.shukuma.com검색:
|
DOMDocument::xinclude(PHP 5, PHP 7) DOMDocument::xinclude — Substitutes XIncludes in a DOMDocument Object 설명
public int DOMDocument::xinclude
([ int
$options
] )This method substitutes » XIncludes in a DOMDocument object.
반환값
Returns the number of XIncludes in the document, -1 if some processing failed,
or 예제
Example #1 DOMDocument::xinclude() example
<?php 위 예제의 출력 예시: <?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.xml"> <entry>The Grapes of Wrath</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>0140186409</entry> </row> <row xml:base="/home/didou/book.xml"> <entry>The Pearl</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>014017737X</entry> </row> <row xml:base="/home/didou/book.xml"> <entry>Samarcande</entry> <entry>Amine Maalouf</entry> <entry>fr</entry> <entry>2253051209</entry> </row> </para> </chapter> |