@classmethod
def _get_xml_attr_by_name(cls, node, name):
    """ Get an attribute of an XML element with a prefix and name

        Args:
            node (:obj:`libsbml.XMLNode`): XML node
            name (:obj:`XmlName`): attribute name

        Returns:
            :obj:`str`: attribute value
        """
    for i_attr in range(node.getAttributesLength()):
        if node.getAttrPrefix(i_attr) == name.prefix and node.getAttrName(
            i_attr) == name.name:
            return node.getAttrValue(i_attr)
