create_processing_instruction

[email protected] ("Poulin") Mon, 10 Nov 2003 11:14:06 +0100
Newsgroups php.xml.dev
Message-ID <[email protected]>
Hi !

I tried to use the create_processing_instruction method from the DOMXML
library (PHP 4.3.3) :

$xsl = $dom->create_processing_instruction('','xml-stylesheet

type="text/xsl" href="'.$pathXSL.'"');

Unfortunately, when I dump, the result is something like that :

<? xml-stylesheet type="text/xsl" href="style.xsl"?>

See the white space after <? ???

That white space makes my XML document invalid !

What should I do ?

Joe, pour little programmer.