Im completely stuck on how to approach this. Basically i have a curl call that returns a xml along with other info and what i need to do is basically only get the xml part of the returned data and set it to a seperate variable i guess. So for example\[code\] array( ['name']='john', ['location']='california', ) <?xml version="1.0"?> <data> <name>somename</name> </data> array( ['name']='john', ['location']='california', ) array( ['name']='john', ['location']='california', )\[/code\]and so i only want the XML part of this entire data. I haven't tried anything because I dont even know where to begin can someone help me out please.