xml bool attr parse fix
Merge pull request #832 from tiagojsag/xml_boolean_fix

_getBooleanAttribute() improvement and refactored PR 831