UnstructuredXMLLoader document loader. 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.
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 allUnstructuredXMLLoader features and configurations head to the API reference
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

