Re: DOMDocument->saveXML()

From: Date: Mon, 18 Sep 2006 13:55:43 +0000
Subject: Re: DOMDocument->saveXML()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241880@lists.php.net to get a copy of this message
Pass the root node of your tree as a parameter to saveXML() Chris Boget wrote:
I looked all through the documentation but was unable to find out if this was possible and, if so, how. When you call ->saveXML(), it prints out the XML declaration <?xml version="1.0"?> alont with the structure of the document. Is there any way to suppress that? I'm trying to print out extra text (in the form of a stylesheet call) and the declaration that ->saveXML() prints out is messing everything up. Would it be possible to point to the relevant page in the documentation that discusses how to do this? thnx, Chris


« previous php.general (#241880) next »