Re: I need help so much

From: Date: Wed, 11 Jul 2007 15:55:38 +0000
Subject: Re: I need help so much
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-35944@lists.php.net to get a copy of this message
Please have a look at our support section, http://php.net/support You are probably looking for the "General user list" mailing list (http://php.net/mailinglists) -Hannes On 7/11/07, mona borham <monalisa20042006@gmail.com> wrote:
Please I need help so much i don't know what's happening even in PHP's site I don't find what I want There is issues I have when I'm working I'm making a bbcode using XML and DOM in PHP I faced in making smilies it doesn't define element as a node I don't know how .... the code in XML looks like this : <smilies> <popeyes> <text>00)</text> <image><![CDATA[<img src='images/smailes101.gif' />]]></image> </popeyes> </smilies> and extracting in PHP looks like this : $smilies = $doc->getElementsByTagName("smilies")->item(0);
     $popeyes = $smilies->getElementsByTagName("popeyes")->item(0);
      $text_popeyes= $popeyes->getElementsByTagName("text")->item(0);
        $img_popeyes =
$popeyes->getElementsByTagName("image")->item(0).firstchild.nodevalue; and I had this error : *Catchable fatal error*: Object of class DOMElement could not be converted to string in *D:\wamp\www\CMS1\xmlextract.php* on line *70* I don't know what's that mean the only meaning I'm getting that it doesn't define element as a node this was the first one .... please reply to me ASAP because that's really important


« previous php.mirrors (#35944) next »