Parse the first table from an xml content. Returns: A docling table data.
(self)
| 1662 | return dl_table |
| 1663 | |
| 1664 | def parse(self) -> Optional[TableData]: |
| 1665 | """Parse the first table from an xml content. |
| 1666 | |
| 1667 | Returns: |
| 1668 | A docling table data. |
| 1669 | """ |
| 1670 | section = self._soup.find("table") |
| 1671 | if section is not None: |
| 1672 | table = self._parse_table(section) |
| 1673 | if table.num_rows == 0 or table.num_cols == 0: |
| 1674 | _log.warning("The parsed USPTO table is empty") |
| 1675 | return table |
| 1676 | else: |
| 1677 | return None |
| 1678 | |
| 1679 | |
| 1680 | class HtmlEntity: |
no test coverage detected