XML
The UnstructuredXMLLoader
is used to load XML
files. The loader works with .xml
files. The page content will be the text extracted from the XML tags.
from langchain_community.document_loaders import UnstructuredXMLLoader
loader = UnstructuredXMLLoader(
"./example_data/factbook.xml",
)
docs = loader.load()
docs[0]
API Reference:UnstructuredXMLLoader