code: def from_string(html_str, url=None):
          "Creates a new CourseCatalog instance from an string containing xml."
          return CourseCatalog(BeautifulSoup(_remove_divs(html_str),
              convertEntities=BeautifulSoup.HTML_ENTITIES
          ), urlf from_string(html_str, url=None):
          "Creates a new CourseCatalog instance from an string containing xml."
          return CourseCatalog(BeautifulSoup(_remove_divs(html_str),
              convertEntities=BeautifulSoup.HTML_ENTITIES
          ), url)
docs: Creates a new CourseCatalog instance from an string containing xml.