code: def _make_xml(self, endpoints):
          # type: (List[EndpointDescription]) -> ElementTree.Element
          
          root = ElementTree.Element(TAG_ENDPOINT_DESCRIPTIONS)
          for endpoint in endpoints:
              self._make_endpoint(root, endpoint)
  
          # Prepare pretty-printing
          self._indent(root)
          return root
docs: Converts the given endpoint description beans into an XML Element
  
          :param endpoints: A list of EndpointDescription beans
          :return: A string containing an XML document