PHP : Function Reference : DOM Functions : DOMDocument->createProcessingInstruction()
leffeman
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 :)
|