Xpath trouble
Posted: Sun May 06, 2007 12:58 pm
Sorry for posting this here, but I suspect there are gurus in the php community who knows the answer. Googling has not gotten me anywhere.. I don't know.. maybe I'm asking the wrong questions...
Basically, it's an xpath problem: I need to query some itunes tags in an rss. They are typically named <itunes:[something]>. The problem is that the following xpath query is invalid "rss/channel/itunes:[something]". And it's the colon that breaks it... I've tried looking for some way to escape the colon, without success. Maybe I'm taking the wrong approach as using colon's in xml tags is a typical namespace thing.... Well, I'm out of ideas, so any help is appreciated...
Regards, tores
Basically, it's an xpath problem: I need to query some itunes tags in an rss. They are typically named <itunes:[something]>. The problem is that the following xpath query is invalid "rss/channel/itunes:[something]". And it's the colon that breaks it... I've tried looking for some way to escape the colon, without success. Maybe I'm taking the wrong approach as using colon's in xml tags is a typical namespace thing.... Well, I'm out of ideas, so any help is appreciated...
Regards, tores