note 50854 deleted from function.dom-domdocument-createprocessinginstruction by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 21:20:47 +0000 |
| Subject: | note 50854 deleted from function.dom-domdocument-createprocessinginstruction by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147233@lists.php.net to get a copy of this message | ||
Note Submitter: leffeman at gmail dot com
----
Used like this:
<?php
$dom = new DOMDocument('1.0', 'UTF-8');
$dom->appendChild($dom->createProcessingInstruction(
'xml-stylesheet', 'href="test.xsl" type="text/xsl"'));
?>
it produces this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>
Just as the instruction in XSLT :)