hconsole: Refactored reading Widget attributes from XML.