Re: [PHP] DomDocument::GetElementById - a workaround with external DTD

2005-11-18 Thread Curt Zirzow
On Sat, Nov 19, 2005 at 07:05:37AM +0100, Erik Franzn wrote: >... > Using the following DTD as an external file: > > > > > The result is the following: > > > > S_iSectionId="123">test > > > > Warning: Syntax of value for attribute S_iSectionId of > CMAES_Model_DbSection is not valid i

[PHP] DomDocument::GetElementById - a workaround with external DTD

2005-11-18 Thread Erik Franzén
Have tried the following code: $oDomDtd = $oDomImp->createDocumentType('Document', '', 'D:/CMAES/Src/dbtree.dtd'); // Creates a DOMDocument instance $oDom = $oDomImp->createDocument("", "Document", $oDomDtd); // Set other properties $oDom->encoding = 'iso-8859-1'; $oElement = $oDom->createEl