Why doesn't xmlrpclib.dumps just dump an empty value instead of <nil/>?
martin f krafft
madduck at madduck.net
Sun Mar 16 09:21:40 EDT 2008
Hi,
xmlrpclib.dumps((None,), allow_none=True) yields
'<params>\n<param>\n<value><nil/></value></param>\n</params>\n'
Why doesn't it just yield
'<params>\n<param>\n<value/></param>\n</params>\n'
Or even just
'<params>\n<param/>\n</params>\n'
Those are valid XML and valid XML-RPC, but <nil/> isn't.
Thanks for any thoughts...
--
martin | http://madduck.net/ | http://two.sentenc.es/
a farmer is a man outstanding in his field.
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://mail.python.org/pipermail/python-list/attachments/20080316/374a330b/attachment.sig>
More information about the Python-list
mailing list