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

2005-11-18 Thread Erik Franzén
Have tried the following code: ?php // Creates an instance of the DOMImplementation class $oDomImp = new DOMImplementation; // Creates a DOMDocumentType instance $oDomDtd = $oDomImp-createDocumentType('Document', '', 'D:/CMAES/Src/dbtree.dtd'); // Creates a DOMDocument instance $oDom =

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: !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?