# problems parsing through XML

**URL:** <https://forums.plex.tv/t/problems-parsing-through-xml/64782>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 26, 2014, 9:54pm UTC](https://forums.plex.tv/t/problems-parsing-through-xml/64782 "2014-04-26T21:54:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![2TAKTER](https://avatars.discourse-cdn.com/v4/letter/2/ba8739/32.png) [@2TAKTER](https://forums.plex.tv/u/2TAKTER)\
**Post date:** [April 26, 2014, 9:54pm UTC](https://forums.plex.tv/t/problems-parsing-through-xml/64782/1 "2014-04-26T21:54:00Z")

</div>

Hi everyone,

&nbsp;

I am trying to parse a XML like described in the API documentation

&nbsp;

This is the XML (partially):

```
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>

  
    
      Special-Podcast: E3 2009 ~ Teil 2
      http://feedproxy.google.com/~r/mtvgameone/~3/zzf4jiZ_qy4/15.mp3
      Gregor, Simon & Etienne
      Nintendos Highlights von der E3 2009
      Nach der ausführlichen Diskussion von Microsofts und Sonys E3-Lineup ist diesmal Nintendo dran. Als Vertretung für Budi ist diesmal Kollege Etienne dabei, der uns durch die restlichen Messe-Specials begleitet.
      Gregor, Simon & Etienne
      Nach der ausführlichen Diskussion von Microsofts und Sonys E3-Lineup ist diesmal Nintendo dran. Als Vertretung für Budi ist diesmal Kollege Etienne dabei, der uns durch die restlichen Messe-Specials begleitet.<img src="http://feeds.feedburner.com/~r/mtvgameone/~4/zzf4jiZ_qy4" height="1" width="1"/>

```
  <guid isPermaLink="false">http://cdn.riptide-mtvn.com/production/0000/0015/15.mp3</guid>
  <pubDate>Sat, 06 Jun 2009 10:39:47 +0200</pubDate>
  <itunes:duration>00:48:21</itunes:duration>
  <itunes:keywords>GameOne, Podcast, E3, 2009, Gregor, Simon, Etienne, Nintendo, Mario, Metorid, Samus</itunes:keywords>
  <media:content url="http://feedproxy.google.com/~r/mtvgameone/~5/zzf4jiZ_qy4/15.mp3" type="audio/mpeg" /><itunes:explicit>no</itunes:explicit><feedburner:origLink>http://cdn.riptide-mtvn.com/production/0000/0015/15.mp3</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/mtvgameone/~5/zzf4jiZ_qy4/15.mp3" length="0" type="audio/mpeg" /><feedburner:origEnclosureLink>http://cdn.riptide-mtvn.com/production/0000/0015/15.mp3</feedburner:origEnclosureLink>
</item>
</channel>

```
```

I am using the API to get the XML and parse it

```
def MainMenu():

```
content = XML.ElementFromURL('http://gameone.de/feed/podcast.xml')
items = content.xpath('/rss/channel/item')

oc = ObjectContainer()

for item in items:
	title = item.xpath('./title')[0].text
	link = item.xpath('./link')[0].text
	author = item.xpath('./author')[0].text
	description = item.xpath('./description')[0].text
	#oc.add(DirectoryObject(key=Callback(SendungVerpasst, name="Sendung Verpasst"), title="Sendung Verpasst"))
	oc.add(CreateTrackObject(url=link, title=title, fmt='mp3', thumb=R(ICON)))

return oc

```
```

anyway, it seems that I do not get anything back. I gues I am using xpath incorrectly, am I right?

&nbsp;

Thanks in advance ^^

&nbsp;

EDIT:

I am sorry! This problem was also related to:&nbsp;[https://forums.plex.tv/topic/107575-old-content-is-still-cached-and-cant-be-removed/#entry636849](https://forums.plex.tv/topic/107575-old-content-is-still-cached-and-cant-be-removed/#entry636849)

With my WP8 app for Plex it works very well. Seems that my browser still had the non-functional channel cached.

&nbsp;

It is weird, because I always reload chrome with CTRL+Shift+R which should empty the cache completely

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 1:57am UTC](https://forums.plex.tv/t/problems-parsing-through-xml/64782/2 "2019-12-21T01:57:24Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
