[XML-SIG] setAttribute DOM question-newbie
Thomas B. Passin
tpassin@home.com
Thu, 15 Nov 2001 09:07:28 -0500
[Guy Robinson]
> Hello Alexandre,
>
> thanks for replying, Just this minute worked it out. The problem was the
my
> list row contains numbers and text. eg. (1, 'Expat', 'an XML parser')
>
> working code:
>
> for row in DbRec:
> new_elem = doc.createElement( 'ITEM')
> for i in range(len(QryAttrName)):
> s = row[i]
> if type(s) != type(""):
> s = `s`
I would have used
s=str(row[i])
A bit simpler...
Tom P