Myrith Posted April 2, 2007 Share Posted April 2, 2007 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 More sharing options...
Captain_Pugwash Posted April 4, 2007 Share Posted April 4, 2007 try $XMLdoc = domxml_new_doc('1.0'); works for me Link to comment https://forums.phpfreaks.com/topic/45307-php4-dom-xml-creating-document-type/#findComment-221298 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.