Zastanawiam sie czy jest to wogóle możliwe, mam taki skrypt
<?php $response=$dom->createElement('response'); $dom->appendChild($response); $news=$dom->createElement('news'); $newstxt=$dom->createTextNode($newsget); $news->appendChild($newstxt); $dan=$dom->createElement('dan'); $dan->appendChild($news); $response->appendChild($dan); ?>
no i wyskakuje mi błąd. Czy jest wogóle możliwe pobranie za pomocą php textu z pliku txt i wstawienie go do xml.
I drugie pytanie, czy możliwe jest przesyanie za pomocą xml grafiki np. jakiegoś gifa. Potrzebuje tego do Ajaxa.
Przykładowo:
<?php $im = $pogoda['main'][1]; $imagefile = "<img src="img/$im.gif" width="50" height="51">"; ?>
i wstawienie tego do xml
Proszę o pomoc. Pozdrawiam!!!