Class XPathSettings

java.lang.Object
org.libxmq.imp.xml.XPathSettings

public final class XPathSettings extends Object
Settings of a compiled xpath expression, like XmlXPathSettings in the C version.
  • Field Details

    • DEFAULT_MAX_DEPTH

      public static final int DEFAULT_MAX_DEPTH
      Maximum nesting of an expression, libxml2 XPATH_MAX_RECURSION_DEPTH.
      See Also:
    • namespaces

      public Map<String,String> namespaces
      Prefixes that may be used in expressions (the xml prefix is always known).
    • html_ids

      public boolean html_ids
      id() also finds id attributes (and name on a), like libxml2 for html documents.
    • max_depth

      public int max_depth
      Maximum nesting of the expression.
    • no_context_node

      public boolean no_context_node
      There is no context node (like a fresh libxml2 xmlXPathNewContext): relative paths select nothing.
    • no_variables

      public boolean no_variables
      Variable references are compile errors (libxml2 XML_XPATH_NOVAR, xslt patterns).
  • Constructor Details

    • XPathSettings

      public XPathSettings()
      Default settings.
    • XPathSettings

      public XPathSettings(XPathSettings s)
      A copy of settings.
      Parameters:
      s - The settings to copy.