note 9514 deleted from DOM XML functions by ronabop

From: Date: Wed, 06 Dec 2000 05:56:28 +0000
Subject: note 9514 deleted from DOM XML functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-8446@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

« previous php.notes (#8446) next »