xml attributes question

Ajay abra9823 at mail.usyd.edu.au
Sat Aug 14 22:25:58 EDT 2004


hi!

i am trying to print the keys of a NamedNodeMap which contains the
attributes of a element.
for the element,
<DATA ref="#business.name">CatalogExample</DATA>

i expect
attribs = plist[0].attributes
attribs.keys()
to print "ref" #plist[0] is the data element shown above
It however prints the following
[(None, u'ref')]

why?

thanks

cheers




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Python-list mailing list