Simple XML - Dealing With Colons In Nodes

前端 未结 4 425
悲&欢浪女
悲&欢浪女 2020-11-22 14:40

I\'m trying to read an RSS feed from Flickr but it has some nodes which are not readable by Simple XML (media:thumbnail, flickr:profile, and so on)

4条回答
  •  难免孤独
    2020-11-22 14:58

    You're dealing with a namespace? I think you need to use the ->children method.

    $ns_dc = $item->children('http://namespace.org/');
    

    Can you provide a snippet with the xml declaration?

提交回复
热议问题