Easiest way to user DomDocument->getElementById()?
| From: | Erik Franzén | Date: | Mon, 14 Nov 2005 20:48:25 +0000 |
| Subject: | Easiest way to user DomDocument->getElementById()? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-225776@lists.php.net to get a copy of this message | ||
According to the php docs, the method DomDocument->getElementById() will not work unless the document is validated using a DTD (not schema):
"According to the DOM standard this requires a DTD which defines the attribute ID to be of type ID. You need to validate your document with DOMDocument->validate() or DOMDocument->validateOnParse before using this function."
I cannot use a schema in ordet to "activate" DomDocument->getElementById()?
/Erik