Class XmlTools

java.lang.Object
com.tnsai.tools.file.XmlTools

public class XmlTools extends Object
Function-shape XML tools — the LangChain-style replacement for the legacy XMLParserTool that took filepath|xpath as one string with a single-pipe separator (see issue #188 — RFC).

The XML parser is configured with XMLConstants.FEATURE_SECURE_PROCESSING and external-entity resolution disabled — XXE-safe defaults that match the legacy tool's behavior plus the explicit XEE feature flips.

Since:
0.5.7 (Phase 2 — built-in tool migration to function shape, see #188)
  • Field Details

    • DEFAULT_EXTENSIONS

      public static final Set<String> DEFAULT_EXTENSIONS
  • Constructor Details

    • XmlTools

      public XmlTools()
    • XmlTools

      public XmlTools(FileGuardConfig guardConfig)
  • Method Details