Module: Moxml::XPath

Defined in:
lib/moxml/xpath.rb,
lib/moxml/xpath/cache.rb,
lib/moxml/xpath/lexer.rb,
lib/moxml/xpath/engine.rb,
lib/moxml/xpath/errors.rb,
lib/moxml/xpath/parser.rb,
lib/moxml/xpath/context.rb,
lib/moxml/xpath/ast/node.rb,
lib/moxml/xpath/compiler.rb,
lib/moxml/xpath/ruby/node.rb,
lib/moxml/xpath/conversion.rb,
lib/moxml/xpath/ruby/generator.rb

Overview

XPath 1.0 implementation for Moxml

This module provides a complete XPath 1.0 engine for querying XML documents, particularly for the Ox adapter which has limited native XPath support.

Examples:

Basic usage

engine = Moxml::XPath::Engine.new(document)
results = engine.evaluate("//book[@id='123']")

Defined Under Namespace

Modules: AST, Conversion, Ruby Classes: Cache, Compiler, Context, Engine, Error, EvaluationError, FunctionError, InvalidContextError, Lexer, NodeTypeError, Parser, SyntaxError