use a macro to get float attributes from xml.