Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12632 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52653 invoked by uid 1010); 7 Sep 2004 17:28:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52609 invoked by uid 1007); 7 Sep 2004 17:28:16 -0000 Message-ID: <20040907172816.52604.qmail@pb1.pair.com> To: internals@lists.php.net Date: Tue, 07 Sep 2004 13:27:49 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 66.65.38.153 Subject: simplexml and dom From: cellog@php.net (Greg Beaver) Hi, I've been experimenting with using both simplexml and dom on the same document at the same time, and have run into a number of unexplainable PHP crashes unless I clone the domdocument object before using simplexml_import_dom() Is it a design goal of simplexml to be able to use it simultaneously with dom, or is it important to use either a simplexmlelement or a domdocument for the same structure but not both? If so, I will add a note to the manual, but I wanted to check with the creators first. A simplified version of the code I use is something like: loadXml($blah); // I do error checking here $sx = simplexml_import_dom($d); // manipulate document structure using dom // retrieve values using simplexml for simple tags ?> Thanks, Greg