Re: [Hampshire] Doctype Declarations in PHP DOM

Top Page

Reply to this message
Author: Mark Johnson
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Doctype Declarations in PHP DOM
>> Does anyone know if it's possible to define which DTD the DOM should
>> use,
>> so that it's output with the saveHTML() or saveXML() methods?
>
> Does the W3C have any DTD guideline for this? That's where I used to
> check for these things.
> You may find that the language does not provide valid XHTML (much like
> the MS ASP.NET engine...).
>
> Chris
>

I've found that when using saveXML() it does validate as XHTML 1.0 Strict,
although not without manually adding the <!DOCTYPE> tag.
Unfortunately I can't find any guildelines from a quick search of w3.org

Cheers,
Mark