Fixes Issue #123: Corrected boolean xml to python conversion
This commit is contained in:
parent
a67e16d1b7
commit
9950208d06
@ -105,7 +105,7 @@ def _xml2py(value):
|
||||
if value.find('{%s}int' % namespace) is not None:
|
||||
return int(value.find('{%s}int' % namespace).text)
|
||||
if value.find('{%s}boolean' % namespace) is not None:
|
||||
return bool(value.find('{%s}boolean' % namespace).text)
|
||||
return bool(int(value.find('{%s}boolean' % namespace).text))
|
||||
if value.find('{%s}string' % namespace) is not None:
|
||||
return value.find('{%s}string' % namespace).text
|
||||
if value.find('{%s}double' % namespace) is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user