Easiest way to user DomDocument->getElementById()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux