Fixes #5065: create a generic method to add line in xml section
Merge pull request #67 from ncharles/bug_5065/dev/add_line_in_xml_section

Fixes #5065: create a generic method to add line in xml section