Jump to content

PHP4 DOM XML: Creating document type


Myrith

Recommended Posts

Hi,

 

I have PHP 4 installed on my webhost, and I'm working on a PHP script that outputs XML using the DOM XML extension. I know that the functions in DOM XML (PHP 4) and DOM (PHP 5) are different. Apparently DOM XML doesn't have a function for creating a node that specifies the document type declaration. (This functionality has been added in PHP 5, however.)

 

My question is:

* Is there a workaround for setting the DOCTYPE in the DOM with PHP 4?

 

Thanks for your help.

 

- DOM XML Functions (PHP 4)

- DOM Functions (PHP 5)

Link to comment
https://forums.phpfreaks.com/topic/45307-php4-dom-xml-creating-document-type/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.