Monday, September 30, 2002, 10:54:25 PM, you wrote:
DÖJ> I need to apply iso-8859-1 encodeing to the <?xml version=”1.0”?> that
DÖJ> this function creates: 
DÖJ> new_xmldoc(“1.0”). 
DÖJ> I tried to replace the line but ofcourse the new_xmldoc function creates
DÖJ> object-tree of the document and I don’t know I can reffrer to
DÖJ> the first line, or <?xml version=”1.0”?> or just create the document
DÖJ> with the encodeing
DÖJ> Thanks, David

One way to force it:
echo '<?xml version="1.0" encoding="iso-8859-1"?><root/>';
$buffer = ob_get_contents();
$dom = domxml_open_mem($buffer);
echo '<pre>';
echo htmlentities($dom->dump_mem(true));
echo '</pre>';

When it saves the document it should then convert to iso-8859-1
Just make '<root/>' whatever the root element will be.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to