xml.dom.minidom on os x

Miki Tebeka tebeka at cs.bgu.ac.il
Mon Mar 24 06:20:26 EST 2003


Hello Sascha,

> #!/usr/bin/env python
>  from xml.dom.minidom import parseString
>  try:
> 	
> dom3 = parseString('<myxml>Some data<empty/> some more data</myxml>')
> 	
> print "succeded"
> except:
> 	print "failed"
> 
> has anybody an idea, why the parser does not work?
Remove the try/except from the code and you'll get a stack trace with
much more information.

HTH.
Miki




More information about the Python-list mailing list