Re: DOM XML and php

From: Date: Thu, 11 Mar 2004 13:19:52 +0000
Subject: Re: DOM XML and php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180135@lists.php.net to get a copy of this message
<?php $xmlstr = '<bla><bla1>blabalabalab</bla1></bla>'; if(!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } // The root domdocument node $root = $dom->document_element(); ///Dump the content back to string var_dump($dom->dump_mem()); ?> Read the manual in the DOM XML functions section. Regards, Lucian COZMA "Tassos T" <nereus0@freemail.gr> wrote in message news:002501c40764$b9243b60$1900000a@TRITON... > Hello, > > I face a problem. I have a php script and I send a xml request to a server. > After I receive xml data but I have this data to an php string variable. > > How to create a xml dom with out to write a xml file ? > > I want to use a xslt to tranform that xml data. > > > Any idea ? > > Thanks > > tassos

« previous php.general (#180135) next »