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

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

 



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

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