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.
Overview
Integration details
| Class | Package | Local | Serializable | JS support |
|---|---|---|---|---|
| UnstructuredXMLLoader | langchain_community | ✅ | ❌ | ✅ |
Loader features
| Source | Document Lazy Loading | Native Async Support |
|---|---|---|
| UnstructuredXMLLoader | ✅ | ❌ |
Setup
To access UnstructuredXMLLoader document loader you’ll need to install thelangchain-community integration package.
Credentials
No credentials are needed to use the UnstructuredXMLLoader To enable automated tracing of your model calls, set your LangSmith API key:Installation
Install langchain_community.Initialization
Now we can instantiate our model object and load documents:Load
Lazy Load
API reference
For detailed documentation of all __ModuleName__Loader features and configurations head to the API reference: python.langchain.com/api_reference/community/document_loaders/langchain_community.document_loaders.xml.UnstructuredXMLLoader.htmlConnect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.