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

    attribute
    XML_FORMAT_INSTRUCTIONS: str

    Functions

    function
    nested_element

    Get nested element from path.

    Classes

    class
    OutputParserException

    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.

    class
    BaseMessage

    Base abstract message class.

    Messages are the inputs and outputs of a chat model.

    Examples include HumanMessage, AIMessage, and SystemMessage.

    class
    BaseTransformOutputParser

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

    class
    AddableDict

    Dictionary that can be added to another dictionary.

    class
    XMLOutputParser

    Parse an output using xml format.

    Returns a dictionary of tags.

    View source on GitHub