|
DOMDocument::xincludeSubstitutes XIncludes in a DOMDocument Object Beschreibung
public int DOMDocument::xinclude
([ int
$options
] )This method substitutes » XIncludes in a DOMDocument object.
Rückgabewerte
Returns the number of XIncludes in the document, -1 if some processing failed,
or Beispiele
Beispiel #1 DOMDocument::xinclude() example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
<?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>
|