On Sun, 5 May 2002, brad lafountain wrote: > Hello, > > I was wondering who was maintaing the dom xml extension. > > I was just testing out some stuff. > > ------------------------------------- > $xml = new DomElement('asdf'); > just doesn't work.. > > $xml = new DomElement('asdf'); > $real_element = $xml->domelement('asdf'); > works... > > I looked into this.. Two reasons this is happening.. > > 1) > The register_class_entry has "DomElement" not "domelement" (all the classes are > > like that). > So that is why the constructor isn't being called. > > 2) > The constructor returns a zval instead of making the addintions to the current > object.
you should use $xml->create_element("bla"), which does the second thing for you. chregu -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php