I got a simplexml variable wich stores an xml file, what i need to do is convert it to a string and then save it in a SQL database file, i tried:
echo $xml->asXML();
but it only shows me the content of the labels, and i need to get all the structure to save it.
Is there any way to get te full string from an XML variable in PHP ??
thanks in advance
Ok as someone said herem, simply using the
it will store the entire xml in $test variable, only problem is that when you echo it it will show you only the label value, not the label itself. this is why i tought it wasnt working.
Anyway i updated the xml field in my sql table and it fills it with a well formated xml string .