LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreoutput_parsersxml
    Moduleā—Since v0.1

    xml

    Output parser for XML format.

    Attributes

    Functions

    Classes

    View source on GitHub
    attribute
    XML_FORMAT_INSTRUCTIONS: str
    function
    nested_element
    class
    OutputParserException
    class
    BaseMessage
    class
    BaseTransformOutputParser
    class
    AddableDict
    class
    XMLOutputParser

    Get nested element from path.

    Exception that output parsers should raise to signify a parsing error.

    This exists to differentiate parsing errors from other code or execution errors that also may arise inside the output parser.

    OutputParserException will be available to catch and handle in ways to fix the parsing error, while other errors will be raised.

    Base abstract message class.

    Messages are the inputs and outputs of a chat model.

    Examples include HumanMessage, AIMessage, and SystemMessage.

    Base class for an output parser that can handle streaming input.

    Dictionary that can be added to another dictionary.

    Parse an output using xml format.

    Returns a dictionary of tags.