note 9514 added to DOM XML functions

From: Date: Wed, 08 Nov 2000 12:22:08 +0000
Subject: note 9514 added to DOM XML functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-7497@lists.php.net to get a copy of this message
Something like this would be great: class MyNode extends DomNode { ... set the Name ... ... add some functionality ... } class MyDocument extends DomDocument { ... set the Document-type here ... } // until here it is possible to do so // but with no benefits like this $doc = new MyDocument; // create object $myNode = new MyNode; $myNode->setId( "myId" ); // add object to document as root $doc->add_root( $myNode ); so far so good! // retrieve root $object_of_type_MyNode = $doc->root(); // retrieve by id $object_of_type_MyNode = $doc->getNodeById( "myId" ); $object_of_type_MyNode->userFunction( $value ); Concerning the DomDocument Class, it would be great to define the document-type! Then it would be possible to support other documents than XML! What do you think about this idea? Greetings Dietmar http://www.php.net/manual/ref.domxml.php

« previous php.notes (#7497) next »