refactor the attribute/element defs
basic parsing of element attributes into class defs