moglibyście zerknąć na poniższy kod, bo w wyniku ciągle dostaję "zle":
$q = "<trip id=\"123456\">"; }else{ }
<li class="li1">powinno działać
$q = ' <obligatorycomponents> </obligatorycomponents> </trip> <trip id="283531"> <type>LAST</type> <off'; }else{ }