Added function xmlAttrToBool.