You are here: Re: DomDocument::GetElementById - a workaround with external DTD « PHP « IT news, forums, messages
Re: DomDocument::GetElementById - a workaround with external DTD

Posted by Erik Franzιn on 10/15/91 11:32

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
>

 

Navigation:

[Reply to this 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация