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

Your name:

Reply:


Posted by Rob on 11/09/60 11:32

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация