DOMDocument::xinclude Sustituye XIncludes en un objeto DOMDocument &reftitle.description; public intDOMDocument::xinclude intoptions Este método sustituye XIncludes en un objeto DOMDocument. Debido a que libxml2 resuelve automáticamente entidades, este método producirá resultados inesperados si el fichero XML incluido tiene un DTD adjunto. &reftitle.parameters; options Parámetros de libxml. Disponible desde PHP 5.1.0 y Libxml 2.6.7. &reftitle.returnvalues; Devuelve el número de XIncludes del documento, -1 si falló algún proceso, o &false; si no hubo sustituciones. &reftitle.examples; Ejemplo de DOMDocument::xinclude() Books of the other guy.. xinclude: book.xml not found EOD; $dom = new DOMDocument; // vamos a tener una impresión buena $dom->preserveWhiteSpace = false; $dom->formatOutput = true; // cargar la cadena XML definida arriba $dom->loadXML($xml); // sustituir xincludes $dom->xinclude(); echo $dom->saveXML(); ?> ]]> &example.outputs.similar; Books of the other guy.. The Grapes of Wrath John Steinbeck en 0140186409 The Pearl John Steinbeck en 014017737X Samarcande Amine Maalouf fr 2253051209 ]]>