XML to string to save in SQL (PHP)

KCV

New Member
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:\[code\]echo $xml->asXML();\[/code\]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
 
Back
Top