Hi, 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: <? ob_start(); echo '<?xml version="1.0" encoding="iso-8859-1"?><root/>'; $buffer = ob_get_contents(); ob_end_clean(); $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. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

