Re: Re: domxml and setting the DOCTYPE
| From: | Raphael Bauduin | Date: | Tue, 24 Sep 2002 14:35:23 +0000 |
| Subject: | Re: Re: domxml and setting the DOCTYPE | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117418@lists.php.net to get a copy of this message | ||
thanks for your answer. I hoped there was a function to specify the doctype
of the document generated. Apparently there isn't. It's as sad thing as I
have to create another script just to add the doctype.
Can someone just confirm me it's not possible with php to do what I want?
I find it strange you can read the doctype but not set it.
Raph
Marek Kilimajer wrote:
> 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)
>>>
>>>
>>
>>
>>
>>