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

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

        Returns:
            :obj:`libsbml.XMLNode`: child with prefix and name
        """
    matching_children = []
    for i_child in range(node.getNumChildren()):
        child = node.getChild(i_child)
        if child.getPrefix() == name.prefix and child.getName() == name.name:
            matching_children.append(child)
    if len(matching_children) == 1:
        return matching_children[0]
    else:
        return None
