class_docstr: HTML to DataFrame parser that uses lxml under the hood.
  
  Warning
  -------
  This parser can only handle HTTP, FTP, and FILE urls.
  
  See Also
  --------
  _HtmlFrameParser
  _BeautifulSoupLxmlFrameParser
  
  Notes
  -----
  Documentation strings for this class are in the base class
  :class:`_HtmlFrameParser`.
class_docstr_tok: ["HTML","to","DataFrame","parser","that","uses","lxml","under","the","hood",".","Warning","--","--","--","-","This","parser","can","only","handle","HTTP",",","FTP",",","and","FILE","urls",".","See","Also","--","--","--","--","_HtmlFrameParser","_BeautifulSoupLxmlFrameParser","Notes","--","--","-","Documentation","strings","for","this","class","are","in","the","base","class",":","class",":","`","_HtmlFrameParser","`","."]
docstr: Raises
  ------
  ValueError
      * If a URL that lxml cannot parse is passed.
  
  Exception
      * Any other ``Exception`` thrown. For example, trying to parse a
        URL that is syntactically correct on a machine with no internet
        connection will fail.
  
  See Also
  --------
  pandas.io.html._HtmlFrameParser._build_doc
docstr_tok: ["Raises","--","--","--","ValueError","*","If","a","URL","that","lxml","can","not","parse","is","passed",".","Exception","*","Any","other","``","Exception","``","thrown",".","For","example",",","trying","to","parse","a","URL","that","is","syntactically","correct","on","a","machine","with","no","internet","connection","will","fail",".","See","Also","--","--","--","--","pandas.io.html._HtmlFrameParser._build_doc"]
code: def _build_doc(self):
      """
      Raises
      ------
      ValueError
          * If a URL that lxml cannot parse is passed.
  
      Exception
          * Any other ``Exception`` thrown. For example, trying to parse a
            URL that is syntactically correct on a machine with no internet
            connection will fail.
  
      See Also
      --------
      pandas.io.html._HtmlFrameParser._build_doc
      """
      from lxml.etree import XMLSyntaxError
      from lxml.html import (
          HTMLParser,
          fromstring,
          parse,
      )
  
      parser = HTMLParser(recover=True, encoding=self.encoding)
  
      try:
          if is_url(self.io):
              with urlopen(self.io) as f:
                  r = parse(f, parser=parser)
          else:
              # try to parse the input in the simplest way
              r = parse(self.io, parser=parser)
          try:
              r = r.getroot()
          except AttributeError:
              pass
      except (UnicodeDecodeError, OSError) as e:
          # if the input is a blob of html goop
          if not is_url(self.io):
              r = fromstring(self.io, parser=parser)
  
              try:
                  r = r.getroot()
              except AttributeError:
                  pass
          else:
              raise e
      else:
          if not hasattr(r, "text_content"):
              raise XMLSyntaxError(
                  "no text parsed from document", 0, 0, 0
              )
  
      for br in r.xpath("*//br"):
          br.tail = "\n" + (br.tail or "")
  
      return r
  
imports: from __future__ import annotations
  from collections import abc
  import numbers
  import re
  from typing import TYPE_CHECKING, Iterable, Literal, Pattern, Sequence, cast
  from pandas._libs import lib
  from pandas._typing import BaseBuffer, DtypeBackend, FilePath, ReadBuffer
  from pandas.compat._optional import import_optional_dependency
  from pandas.errors import AbstractMethodError, EmptyDataError
  from pandas.util._validators import check_dtype_backend
  from pandas.core.dtypes.common import is_list_like
  from pandas import isna
  from pandas.core.indexes.base import Index
  from pandas.core.indexes.multi import MultiIndex
  from pandas.core.series import Series
  from pandas.io.common import file_exists, get_handle, is_url, stringify_path, urlopen, validate_header_arg
  from pandas.io.formats.printing import pprint_thing
  from pandas.io.parsers import TextParser
label_desc: Use image node_id 6 for calling the _LxmlFrameParser obj's underlying member method code with example usage: obj._build_doc() and returns: r