error handling in xml parsing. handle fixed output units perhaps