Author naf305
Recipients naf305
Date 2009-04-29.04:43:50
SpamBayes Score 3.23647e-06
Marked as misclassified No
Message-id <1240980253.13.0.487290174361.issue5873@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I'm pretty new to the community but I get an error using the minidom
parseString() method. Here is my code (ulta simple!):

import xml.dom.minidom
xml = "<tag>hello</tag>"
doc = xml.dom.minidom.parsString(xml)

And here is my error trace:

Traceback (most recent call last):
  File "C:\test.py", line 6, in <module>
    doc = xml.dom.minidom.parsString(xml)
AttributeError: 'str' object has no attribute 'dom'

I get this error no what string I gave it. I use python 2.6 (latest
stable release).

Can someone point in the right direction...google has not been very helpful.

Thanks!

Nico
History
Date User Action Args
2009-04-29 04:44:20naf305setrecipients: + naf305
2009-04-29 04:44:13naf305setmessageid: <1240980253.13.0.487290174361.issue5873@psf.upfronthosting.co.za>
2009-04-29 04:44:06naf305linkissue5873 messages
2009-04-29 04:43:54naf305create