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

Posted by Curt Zirzow on 10/25/99 11:32

On Sat, Nov 19, 2005 at 07:05:37AM +0100, Erik Franzn wrote:
>...
> Using the following DTD as an external file:
> <!ELEMENT Document ANY>
> <!ELEMENT CMAES_Model_DbSection ANY>
> <!ATTLIST CMAES_Model_DbEntry E_iEntryId ID #REQUIRED>
>
> The result is the following:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE Document SYSTEM "D:/CMAES/Src/dbtree.dtd">
> <Document><CMAES_Model_DbSection
> S_iSectionId="123">test</CMAES_Model_DbSection></Document>
>
>
>
> Warning: Syntax of value for attribute S_iSectionId of
> CMAES_Model_DbSection is not valid in <script on line 23
> bool(false)
> TagName: CMAES_Model_DbSection

I would assume you want

<!ATTLIST CMAES_Model_DbEntry S_iSectionId ID #REQUIRED>

or

change the S_iSectionId to be E_iEntryId (to match the dtd)
attibute in the element.

Curt.
--
cat: .signature: No such file or directory

 

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

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