weird xml tag
am 14.01.2010 13:30:18 von Devendra Jadhav
--001636c92c36c9982d047d1f0c8e
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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 pars=
e
xml.
Now the problem is I get weird tag in XML.
Jason Bourne
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
--=20
Devendra Jadhav
दà¥à¤µà¥à¤à¤¦à¥ र =
à¤à¤¾à¤§à¤µ
--001636c92c36c9982d047d1f0c8e--
Re: weird xml tag
am 14.01.2010 13:36:55 von Ashley Sheridan
--=-j7h+F03OLeyRMg9zqdE+
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
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.
> Jason Bourne
> 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 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
--=-j7h+F03OLeyRMg9zqdE+--
Re: weird xml tag
am 14.01.2010 14:26:10 von Devendra Jadhav
--0016e64807c08a474c047d1fd4b8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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-name spaces/
I am very happy.
Thank you very much again. :D
On Thu, Jan 14, 2010 at 6:06 PM, Ashley Sheridan
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 pa=
rse
> xml.
> Now the problem is I get weird tag in XML.
> Jason Bourne
> when i convert this xml into object by using simplexml_load_string I am n=
ot
> 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 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
>
>
>
--=20
Devendra Jadhav
दà¥à¤µà¥à¤à¤¦à¥ र =
à¤à¤¾à¤§à¤µ
--0016e64807c08a474c047d1fd4b8--