Re: weird xml tag

From: Date: Thu, 14 Jan 2010 12:36:55 +0000
Subject: Re: weird xml tag
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301099@lists.php.net to get a copy of this message
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

« previous php.general (#301099) next »