Re: weird xml tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ashley,
Thank you very much for your help.
simplexml handles namespace.
here is the link for reference
http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/
I am very happy.
Thank you very much again. :D

On Thu, Jan 14, 2010 at 6:06 PM, Ashley Sheridan
<ash@xxxxxxxxxxxxxxxxxxxx>wrote:

>  On Thu, 2010-01-14 at 18:00 +0530, Devendra Jadhav wrote:
>
> Hi All,
>
> I am writing module to display recent Wordpress blog posts in drupal.
> I am taking RSS feeds of blog. I am using simple xml library of PHP to parse
> xml.
> Now the problem is I get weird tag in XML.
> <dc:creator>Jason Bourne</dc:creator>
> when i convert this xml into object by using simplexml_load_string I am not
> getting dc:creator in the object as dc:creator is not valid variable name.
> can someone tell me how to access it?
> appreciate your help
>
>
>
>
>
> It's not a weird XML tag, it's a namespace. The tag is <creator> and it's
> within the dc namespace. I've not used simplexml before, but I believe it
> handles namespaces.
>
>   Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>


-- 
Devendra Jadhav
देवेंद्र जाधव

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux