--- Christian Stocker <[EMAIL PROTECTED]> wrote: > Hi > > > Yeah but i don't have a $xml.... > > > > alls i want to do is > > $node = new DomElement('blah'); > > I'm not sure, why you want this, but it doesn't make much sense to me and > is not in the sense of the DOM-Standard: > > "Objects implementing some interface "X" are created by a "createX()" > method on the Document interface; this is because all DOM objects live in > the context of a specific Document." > > therefore you need a document to create an element and this constructor is > somehow stupid (IMHO) and for this reason also not documentated. I don't > know, why it's there at all...
Ok this is what i want to be able to do.. function return_me_a_domxml_node() { return new DomElement("text"); } where return_me_a_domxml_node is defined (obviously) in userspace. I dont' currently have a DomDocument because my extension uses libxml2 and i have a libxml2 document. So i want to be able to take portions of my libxml2 document and pass them to and from userspace functions with out having to have the whole domdocument in the php_domxml extension. something.c /* i know this won't compile... it pesudo php extension code.. //global define xmlDocPtr doc; PHP_FUNCTION(myextension_function) { call_user_function("return_me_a_domxml_node", &ret); doc->addChild(Z_OBJPROP_P(ret)->real_dom_node); } I hope this makes sence... > > > Currently your constructors aren't even being called... ever! > > they are not "my" constructors and i didn't wrote them :) Sorry i didn't mean to assume anything. I have also been poking around in the extension and theres a few things that probally could be taken out... and consolidated... Again im going to submit a patch.. And people can see if they like the changes or not. - Brad __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php