[XML-SIG] Parsing help.
Christian Johansson
christian at pulsardata.no
Thu Sep 2 14:34:24 CEST 2004
Hello.
This might be an trivial question, bet feel free to help a newbee :-)
XML:
<http://www1.fronter.com/pulsardata/sync/1.0/get_calendar.phtml?username=ola
dunk&password=123abc&from=1970.01.01&to=2037.12.31##> - <<appointment
id="11667" olid="" start="28.08.2004 09:30:00" end="28.08.2004 10:00:00">
<subject>TODO</subject>
<body>xxx</body>
</appointment>
My stupid code:
doc = xml.dom.minidom.parse(inXML)
tagSubject = doc.getElementsByTagName('subject')
for subject in tagSubject:
content = subject.nodeValue
print content
Ok so why can I not see the the text "TODO"??
I have tried many similar approaches, but it just want work.
If someone can help me, I would become a happy man!
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20040902/0e2c521a/attachment.html
More information about the XML-SIG
mailing list