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

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

 



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

--
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