<Stat Type="Venue">Allianz Stadium</Stat>
<Stat Type="City">Torino</Stat>
The previous nodes belong to my XML file. the only thing I need to solve it's how I generate the exit and only show me Allianz Stadium.
my code is as follows
foreach ($MatchData->Stat as $stat) {
echo $stat ."\n"; }
at the time of sending the output I printed both