Re: simplexml and dom interop

From: Date: Sat, 25 Oct 2003 19:23:51 +0000
Subject: Re: simplexml and dom interop
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4996@lists.php.net to get a copy of this message
Hello Robert, Cool stuff which i'd like to have in b2 :-) Saturday, October 25, 2003, 8:36:02 PM, you wrote: > If anyone is playing around with simplexml, dom and/or xsl, I have a > patch for the interoperability between simplexml and dom. I am leary about > committing it right now as it has limited testing, beta 2 is being > released next week and I am leaving on tuesday for a week or two, so wont > be able to fix any issues that might arise from it. > patch - http://www.ctindustries.net/patches/interop.diff.txt > example script - > http://www.ctindustries.net/patches/interop.php.txt > The changes include: > simplexml > new function: simplexml_import_dom(domnode) returns an sxe object > behavior change: setting the value of an element will do just > that. I removes all child nodes unlike previous version which would change > the value of the first child node of the reference node (I dont believe > this was the intended behavior) > the change in behavior and the integration with the functions > from the libxml extension should resolve a lot of the libxml memory leaks > dom > new function: dom_import_simplexml(sxe) returns domnode > also a minor change to clonenode method of domnode > Let me know if people really want this in the beta release otherwise i > am going to wait until after I get back to further test and commit this > stuff. > Rob -- Best regards, Marcus mailto:helly@php.net

« previous php.internals (#4996) next »