xml parsing

From: Date: Tue, 13 Mar 2001 23:02:46 +0000
Subject: xml parsing
Groups: php.general 
Request: Send a blank email to php-general+get-43841@lists.php.net to get a copy of this message
please help me... I'm working with some simple xml parsing. in my xml document i have a tag like this: <billede img="theme/bg.gif"></billede> which holds the path of a picture. in the xml parser i'm trying to output it as an <img src=""> tag, but nothing seems to work. some of the things i have tried: case "BILLEDE":
                     print "<img src=\"$element_attrs['IMG']\">";
                     break;
- this will output an error message: warning, expecting T_STRING, T_VARIABLE ETC... case "BILLEDE":
                     print "<img src=\"{$element_attrs['IMG']}\">";
                     break;
- this will let it parse, but it won't do anything with the html. can somebody help me??

« previous php.general (#43841) next »