refactored lineXml * renamed variables * summed up code in functions
refactored lineXml
* renamed variables
* summed up code in functions

stefanmintert/ep_xmlexport,JohnMcLear/ep_xmlexport,stefanmintert/ep_xmlexport,JohnMcLear/ep_xmlexport,stefanmintert/ep_xmlexport