Extract CDATA Node
Girish
girish.cfc at gmail.com
Tue Feb 24 08:29:21 EST 2009
How do I extract CDATA node in Python? I'm using dom.minidom as
follows:-
from xml.dom.minidom import Document
class XMLDocument():
def __init__(self):
self.doc = Document()
def parseString(self, d):
self.doc = parseString(_encode(d))
return self
#Create instance of XMLDocument
doc = XMLDocument()
doc.parseString(open(os.curdir + '\\XML\\1.xml', 'r').read())
.....
Please help me out.
Thanks,
Girish
More information about the Python-list
mailing list