REFACTORED: to uses UnmarshalXML interface with schema element.