From: Sang Y. <Sa...@Ov...> - 2003-11-14 17:06:30
|
jonathan, my output's the same as yours: Python 2.3.2 (#1, Nov 12 2003, 16:24:36)=20 [GCC 2.95.2 19991024 (release)] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.dom.minidom >>> doc =3D xml.dom.minidom.parseString( '<test><me/></test>' ) >>> root =3D doc.documentElement >>> len(root.attributes) 0 >>>=20 any other suggestions? meanwhile, i'll review my test drive setup again... maybe i missed something > Yeah, that's the same version I have in 2.3, so I'm confused=20 > as to why=20 > it's failing. Can you try this: >=20 > ----- > >> import xml.dom.minidom > >> doc =3D xml.dom.minidom.parseString( '<test><me/></test>' ) > >> root =3D doc.documentElement > >> len( root.attributes ) > 0 > ----- >=20 > Jonathan >=20 > --=20 |