refactoring write_xml_declaration
line_properties moved to module Utility.