def print_xmlns(ns_map, root):
    """Print XML namespaces."""
    if None in root.nsmap:
        print('Default XML namespace URI: %s' % root.nsmap[None])
    if ns_map:
        print('XML namespaces:')
        for key in ns_map:
            print('%8s: %s' % (key, ns_map[key]))
