MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / XMLReader

Class XMLReader

KVCOMM/tools/reader/readers.py:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 return text
91
92class XMLReader(Reader):
93 def parse(self, file_path: Path) -> str:
94 logger.info(f"Reading XML file from {file_path}.")
95 with open(file_path, "r") as f:
96 data = BeautifulSoup(f, "xml")
97 text = data.get_text()
98 return text
99
100class YAMLReader(Reader):
101 def parse(self, file_path: Path, return_str=True) -> Union[str, Any]:

Callers 1

readers.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected