Sha256: a4a4c41cabff89b5dd747e693c9b48c616cc46209e10531c1a5ce0a2246910b6

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

Ruby/XPATH

Copyright (C) 2004, 2005 Gregoire Lejeune <gregoire.lejeune@free.fr>

Ruby/XPATH is freely distributable according to the terms of the
GNU General Public License (see the file 'COPYING').

This program is distributed without any warranty. See the file
'COPYING' for details.

-------------------------------------------------------------------------------
Documentation
-------------------------------------------------------------------------------

XML::XPATH - A Ruby class for XPATH

SYNOPSIS

require 'xml/xpath'
xpath = XML::XPATH.new()
xpath.xmlfile = "/path/to/myfile.xml"
i = xpath.execute( "/my/xpath[2]/expression/*" )
print "#{i} nodes :\n"
p xpath.to_a

METHODS

XML::XPATH.new()
    Returns a new XPATH object
XML::XPATH.xml=<xml-string | xml-filename | XML::Simple::Dom>
    Set XML document
XML::XPATH.xmlfile=
	Set XML file
XML::XPATH.xml
    Get XML document or file
XML::XPATH.execute( ... )
    Processes the given XPATH request.
    Returns the number of nodes.
XML::XPATH.to_a
    Returns an array of finded nodes via execute.
-------------------------------------------------------------------------------

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-xpath-0.4.0 README