ricklee Posted April 20, 2007 Share Posted April 20, 2007 Hi Everyone, I was wondering if someone might be able to help me with this. I'm having trouble getting to the string in this object: object(SimpleXMLElement)#2 (1) { [0]=> string(4880) "fasdfa...etc." } $goody->0 doesn't work $goody->attributes() doesn't work either Here's the code that produced the dump: $filename = 'test_feeds/feed.xml'; $feed = simplexml_load_file($filename); $description = $feed->channel->item->description; $goody = simplexml_load_string($description, 'SimpleXMLElement', LIBXML_NOCDATA); print var_dump($goody); Link to comment https://forums.phpfreaks.com/topic/47853-how-can-i-get-to-this-simplexmlelement-objects-attributes/ Share on other sites More sharing options...
c4onastick Posted April 20, 2007 Share Posted April 20, 2007 This isn't a regex problem. Try posting the the PHP help board. Link to comment https://forums.phpfreaks.com/topic/47853-how-can-i-get-to-this-simplexmlelement-objects-attributes/#findComment-234078 Share on other sites More sharing options...
ricklee Posted April 20, 2007 Author Share Posted April 20, 2007 This isn't a regex problem. Try posting the the PHP help board. Sorry, I accidentally posted to the wrong section! I've reposted it on the help board. Thanks for pointing this out. Link to comment https://forums.phpfreaks.com/topic/47853-how-can-i-get-to-this-simplexmlelement-objects-attributes/#findComment-234287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.