Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- From: list-support@xxxxxxxxxxxx (Ben Roberts)
- Date: Wed, 28 Feb 2007 20:45:13 +0000
Rob Richards wrote:
No need to even do that. The document is the same document (zero copy which is why going back and forth is efficient), so when its changed by the xinclude call, it is reflected in $xml already. Only reason you would need to do conversions back and forth is if you need specific nodes that might have been added/changed by the other extension. Here you are using the same root element and dont have to worry about losing any child references you might already have, so its a wasted call.
So really when you perform:
$dom = dom_import_simplexml($xml);
the $dom object is really created by taking a reference to the $xml object rather than copying it? i.e. (I know this isn't real code)
$dom = dom_import_simplexml(& $xml);
Is this correct?
.
- Follow-Ups:
- Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- From: Rob Richards
- Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- References:
- SimpleXML & libxml options (XInclude)
- From: Ben Roberts
- Re: SimpleXML & libxml options (XInclude)
- From: Rob
- Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- From: Ben Roberts
- Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- From: Rob Richards
- SimpleXML & libxml options (XInclude)
- Prev by Date: Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- Next by Date: Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- Previous by thread: Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- Next by thread: Re: [PHP] Re: SimpleXML & libxml options (XInclude)
- Index(es):
Relevant Pages
|