как получить содержимое из разбора minidom с помощью python?

У меня есть такой xml,

<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<item>
<title>Images disappeared in Opera when JavaScript is enabled</title>
<link></link>
<pubDate>Wed, 28 May 2014 16:43:54 GMT</pubDate>
<description><![CDATA[I can't use forums normally in Opera browser since few hours ago. I have to turn Javascript off to see them (then like buttons and rich text editor don't work, of course.) Please fix it. JS  must be causing errors...]]></description>
<content:encoded><![CDATA[<div>I can't use forums normally in Opera browser since few hours ago. I have to turn Javascript off to see them (then like buttons and rich text editor don't work, of course.)<br />
<br />
All images are missing. Everything works fine in Chromium.<br />
<br />
Please fix it. JS  must be causing errors in other browsers as well. (Opera counts as much as 15% user base in Russia.)<br />
<br />
In Dragonfly debugger, I see<br />
<br />
not sure it's related.</div>
]]></content:encoded>
</item>

Чтобы получить содержимое внутри тега описания, я использовал такой код:

contents = item.getElementsByTagName("description")[0].firstChild.data

Но я хочу знать, как получить данные внутри следующего тега,

<content:encoded><![CDATA[<div>I can't use forums normally in Opera browser since few hours ago. I have to turn Javascript off to see them (then like buttons and rich text editor don't work, of course.)<br />
<br />
All images are missing. Everything works fine in Chromium.<br />
<br />
Please fix it. JS  must be causing errors in other browsers as well. (Opera counts as much as 15% user base in Russia.)<br />
<br />
In Dragonfly debugger, I see<br />
<br />
not sure it's related.</div>
]]></content:encoded>

Я не умею парсить xml, пожалуйста, помогите мне.


person user3136030    schedule 29.05.2014    source источник
comment
возможный дубликат xml.dom.minidom: Получение значений CDATA   -  person Paul Sweatte    schedule 05.01.2015