added to osmap.inc

added xml-generating functions to osmap.inc