> Rob Richards wrote:
> Although I doubt someone use the code above, it is the smallest piece
> of code I could write to demonstrate the possibility.
Thanks Rob - that does demonstrate things nicely. Cheers for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Ben Roberts wrote:
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);
Not exactly, but the idea is along
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 speci
Ben Roberts wrote:
Thanks Rob. That works. And it appears to work flawlessly if you
subsequently convert it back to a SimpleXML object too:
$xml = new SimpleXMLElement($xml_file, 0, true);
$dom = dom_import_simplexml($xml);
$dom->ownerDocument->xinclude();
$xml = simplexml_import_dom($dom);
D
Rob wrote:
Ben Roberts wrote:
I'm trying to get the SimpleXML extension to read an XML file and
process the XInclude statements within the XML file.
The SimpleXML docs state that libxml options may be specified using
the predefined constants that are available when PHP is compiled with
libx
Ben Roberts wrote:
I'm trying to get the SimpleXML extension to read an XML file and
process the XInclude statements within the XML file.
The SimpleXML docs state that libxml options may be specified using the
predefined constants that are available when PHP is compiled with libxml
support (
6 matches
Mail list logo