parse xml in html

ybekieSma5

New Member
I'm trying to parse some XML in a php script that makes part of my HTML page but so far i'm not having much success. It seems that it's interpreting the XML as part of the HTML :SHere is the relevant part of the code\[code\]<html lang="en"><head> <meta charset="utf-8" /></head><body><?php while (list(, $grupo) = each($groups)) { $query = "SELECT * FROM address_book WHERE id_group='".$group."';"; $result = mysql_query($query); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { foreach($ids as $contacts) { $phones = simplexml_load_string($row['phones']); foreach($result as $key => $value) { array_push($numbers,$value->number); } } } }?></body>\[/code\]So far,I'm not able to get the data from the XML as I wanted, because it is being interpreted as HTML. How do I make it not be interpreted that way?Any sort of help in this matter is greatly appreciated
 
Top