Don't know much about DOM, but it seems you can use dump_mem() to dump the xml into a string, and then replace your first line
Raphael Bauduin wrote: >Please, don't tell me I can't set the doctype with php!? >Will I have to user a 3 liner in perl to set the doctype? :( > >Raph > > >Raphael Bauduin wrote: > > > >>Hi, >> >>I'm generating XML files with the domxml functions. Everything works fine, >>but I can't set the <!DOCTYPE blah SYSTEM "my.dtd">. >> >>I tried to add a textnode, but <>" are translate in < > " :( >> >> >>Thanks for your help. >> >>Raph >> >> >>PS:Having some troubles to send on the ML, I send this through the news >>server (excuse if you get my request two times) >> >> > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php