Sets the default attributes on tags that were specified in <global>
    tags in the XML file.

def _set_global_defaults(xmlglobals):
    """Sets the default attributes on tags that were specified in <global>
    tags in the XML file."""
    for key, val in xmlglobals.items():
        if key != "defaults":
            for name, tag in val.items():
                _update_from_globals(tag, xmlglobals, None)