DomDocumentType in PHP 5
| From: | Dan Phiffer | Date: | Tue, 29 Jun 2004 01:13:16 +0000 |
| Subject: | DomDocumentType in PHP 5 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189203@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to make use of the getElementById DOM function, but as pointed out in bug #26813 this won't work unless an attribute is explicitely defined in an associated DOCTYPE.
This is fine, but I can't seem to find any relevent examples that show how to apply a DOCTYPE to a DomDocument. The class DomDocumentType seems like a good starting point, but I don't see how that interfaces with DomDocument.
So here's what I want to do:
1. Create a new DomDocument
2. Associate this with a DomDocumentType somehow
3. Build an XML structure using the DOM
4. Query this structure using getElementById
Sorry if I'm missing something obvious.
Also, is there a better list/newsgroup for this?
Thanks,
-Dan