[CentralOH] XML

Mark Erbaugh mark at microenh.com
Mon Aug 11 19:02:33 CEST 2008


I'm parsing some XML generated by JavaScript in a web browser.

When the browser is Internet Explorer (I've only tested v 6), a boolean
is returned as "-1" (true) or "0" (false). When the browser is not IE
(I've tested Mozilla, Firefox and Opera), booleans are returned as
"true" or "false".  Is there a standard way to convert these values to
Python bool's or do I just need to do string comparisons?  Do other
browser's return different values?

Thanks,
Mark



More information about the CentralOH mailing list