Jump to content


Photo

Setting a Doctype with the DOM API


  • Please log in to reply
2 replies to this topic

#1 elg2001

elg2001
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 11 September 2006 - 06:11 AM

Hi,
  I'm using PHP5's DOM API (http://www.php.net/m.../en/ref.dom.php) to build a XHTML 1.1 page. I can successfully create a DOMDocument object, but how do I modify the DOCTYPE of the DOMDocument object? Please note that the DOMDocument::doctype property is read-only.

In a nutshell, I'd like to build one very simple XHTML 1.1 compliant web page using just the DOM API.

#2 elg2001

elg2001
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 11 September 2006 - 06:27 PM

this seems like a rather trivial matter, so if anyone can help I would greatly appreciate it.

#3 elg2001

elg2001
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 12 September 2006 - 12:31 AM

last try for help




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users