xml: added helper to modify (shared) xml location

Purpose is to update location e.g from buffer to something more useful.