From: Jonathan H. <jon...@se...> - 2003-11-14 16:20:24
|
On 14 Nov 2003, at 16:01, Sang Yi wrote: > no pyXML as my version is > 1.5.2 > > here's my output from python: > > Python 2.3.2 (#1, Nov 12 2003, 16:24:36) > [GCC 2.95.2 19991024 (release)] on sunos5 > Type "help", "copyright", "credits" or "license" for more information. >>>> import xml >>>> xml.__version__ > '1.13' Yeah, that's the same version I have in 2.3, so I'm confused as to why it's failing. Can you try this: ----- >> import xml.dom.minidom >> doc = xml.dom.minidom.parseString( '<test><me/></test>' ) >> root = doc.documentElement >> len( root.attributes ) 0 ----- Jonathan -- Jonathan Hogg Director, Technology Seventh Wave Systems Ltd. <http://www.seventh-wave-systems.com/> |