Re: DomDocument::GetElementById - a workaround with external DTD

From: Date: Sat, 19 Nov 2005 17:49:51 +0000
Subject: Re: DomDocument::GetElementById - a workaround with external DTD
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-226131@lists.php.net to get a copy of this message
I totally missed that explanation on w3c. Thanxs, now it works /Erik Rob wrote:
Erik Franzén wrote:
I did a typo in the threads post. The dtd is: <!ELEMENT Document ANY> <!ELEMENT CMAES_Model_DbSection ANY> <!ATTLIST CMAES_Model_DbSection S_iSectionId ID #IMPLIED> but it gives the warning when DomDocument::validate() is called: Warning: Syntax of value for attribute S_iSectionId of CMAES_Model_DbSection is not valid in <script> on line 23
See the validity constraints for an ID in the XML specs: http://www.w3.org/TR/2004/REC-xml-20040204/#id Values of IDs must conform to the following syntax to be valid: (Letter | '_' | ':') (NameChar)* Yours start with a numeric which is why it doesn't validate. Rob


« previous php.general (#226131) next »