Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59894 invoked by uid 1010); 25 Oct 2003 18:34:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59870 invoked from network); 25 Oct 2003 18:34:41 -0000 Received: from unknown (HELO phoebe.host4u.net) (209.150.128.26) by pb1.pair.com with SMTP; 25 Oct 2003 18:34:41 -0000 Received: from ctdprimary (dsta-aa203.pivot.net [66.186.171.203]) by phoebe.host4u.net (8.11.6/8.11.6) with SMTP id h9PIYe930218 for ; Sat, 25 Oct 2003 13:34:40 -0500 Message-ID: <005101c39b26$d814cc10$f7dea8c0@cyberware.local> To: Date: Sat, 25 Oct 2003 14:36:02 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_004E_01C39B05.50B6E0D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: simplexml and dom interop From: rrichards@ctindustries.net ("Robert Richards") ------=_NextPart_000_004E_01C39B05.50B6E0D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_004E_01C39B05.50B6E0D0--