Repository: yt-dlp
Issue: Failed to parse XML  (caused by ParseError('not well-formed (invalid token): line 18, column 62'))
Labels: cant-reproduce,site-bug

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.06.29** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Austria

### Provide a description that is worded well enough to be understood

Hi,
Since tody I can't download facebook videos anymore !
best regards
Tarigh

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
PS E:\Payvand TV\facebook> yt-dlp -Uv 'https://fb.watch/e8UhVhhzuR/'
[debug] Command-line config: ['-Uv', 'https://fb.watch/e8UhVhhzuR/']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 
[debug] yt-dlp version 2022.06.29 [9d339c4] 
[debug] Python 3.10.2 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: avconv -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: avprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {} 
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
[debug] Downloading _update_spec from https://github.com/yt-dlp/yt-dlp/releases/download/2022.06.29/_update_spec 
Latest version: 2022.06.29, Current version: 2022.06.29 
yt-dlp is up to date (2022.06.29) 
[debug] [generic] Extracting URL: https://fb.watch/e8UhVhhzuR/ 
[generic] e8UhVhhzuR: Requesting header 
[redirect] Following redirect to https://www.facebook.com/payvandtv/videos/1377452299412229/ 
[debug] [facebook] Extracting URL: https://www.facebook.com/payvandtv/videos/1377452299412229/ 
[facebook] 1377452299412229: Downloading webpage
[facebook] 1377452299412229: Downloading MPD manifest 
ERROR: [facebook] 1377452299412229: 1377452299412229: Failed to parse XML  (caused by ParseError('not well-formed (invalid token): line 18, column 62')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 640, in extract 
    ie_result = self._real_extract(url)
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\facebook.py", line 713, in _real_extract
    return self._extract_from_url(real_url, video_id)
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\facebook.py", line 569, in _extract_from_url
    parse_attachment(attachment)
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\facebook.py", line 546, in parse_attachment
    return parse_graphql_video(media)
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\facebook.py", line 513, in parse_graphql_video
    formats.extend(self._extract_mpd_formats(playable_url, video_id))
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 2671, in _extract_mpd_formats
    fmts, subs = self._extract_mpd_formats_and_subtitles(*args, **kwargs)
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 2679, in _extract_mpd_formats_and_subtitles
    res = self._download_xml_handle(
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 972, in download_handle
    return parse(self, content, video_id, transform_source=transform_source, fatal=fatal), urlh
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 962, in parse
    return getattr(ie, parser)(content, *args, **kwargs)
  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 936, in _parse_xml
    raise ExtractorError(errmsg, cause=ve)

  File "D:\Programe\Python\lib\site-packages\yt_dlp\extractor\common.py", line 932, in _parse_xml
    return compat_etree_fromstring(xml_string.encode('utf-8'))
  File "D:\Programe\Python\lib\site-packages\yt_dlp\compat\__init__.py", line 34, in compat_etree_fromstring
    return etree.XML(text, parser=etree.XMLParser(target=_TreeBuilder()))
  File "D:\Programe\Python\lib\xml\etree\ElementTree.py", line 1347, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 18, column 62
```