To display a site map of a node with an empty URL, simply remove the entire URL attribute from the node. Then it will be displayed, but will not be accessible for clicks (if you use security trimming, include the role attribute, for example role = "*" or, for example, role = "Admin", since there are no URLs for authorization.)
source share