Does PHP's "schemaValidate" function supportDTD parameter entities?

58 Views Asked by At

I have an XSD (for HTML 4.01, from the usual public source) which includes parameter-entity declarations such as the following:

<!ENTITY % ContentType "CDATA" >

... but when I reference this DTD using PHP-7's DOMDocument::schemaValidate function, I seem to get the following error:

StartTag: invalid element name ... followed by the declaration shown above.

This is then followed by the following message, again followed by the declaration:

Extra content at the end of the document

Does PHP-7's implementation of DTD schema validation really not support parameter-entity syntax?

Also note: My objective is to use this to validate an HTML document, not an XML document. Any comments on this are also requested.

0

There are 0 best solutions below