RubyGems.org

xml-motor

0.1.2

=begin == A new short XML Parsing Algorithm implemented directly in >500 lines. An easy-to-use XML Parser without any Native Dependencies. = [How To Use]: * http://justfewtuts.blogspot.in/2012/03/xml-motor-what-it-is-how-why-should-you.html == Loading: * $ gem install xml-motor * 'require' the 'xml-motor' = Usage: == [[ To Search Just One QUERY ]] * nodes_array = XMLMotor.get_node_from_file "_XML_FILE_" * nodes_array = XMLMotor.get_node_from_file "_XML_FILE_", "ATTRIB_KEY=ATTRIB_VALUE" * nodes_array = XMLMotor.get_node_from_content "_XML_DATA_" * nodes_array = XMLMotor.get_node_from_content "_XML_DATA_", "ATTRIB_KEY=ATTRIB_VALUE" == [[ To Search More Than One QUERIES ]] * str = {XML_DATA} * nodes_ = XMLMotor.splitter str * tags_ = XMLMotor.indexify nodes_ * nodes_array = XMLMotor.xmldata nodes_, tags_, "_TAG_" * nodes_array = XMLMotor.xmldata nodes_, tags_, "_TAG_", "ATTRIB_KEY=ATTRIB_VALUE" = Example Calls As Code: * XMLMotor.get_node_from_content "<A>a</A><B><A>ba</A></B>", "A" -- RETURNS: ["a", "ba"] * XMLMotor.get_node_from_content "<A>a</A><B><A>ba</A></B>", "B.A" -- RETURNS: ["ba"] * XMLMotor.get_node_from_content "<A i='1'>a</A><B><A i='2'>ba</A></B>", "A", "i='1'" -- RETURNS: ["a"] =end

installgem install xml-motor -v 0.1.2
Authors

abhishekkr

11,141 total downloads 783 for this version
Owners

37bac00119fa455390d0fd18c3515488

Gemfile
gem 'xml-motor', '~> 0.1.2'
Versions
  1. 0.1.6 August 20, 2012 (8.5 KB)
  2. 0.1.5 August 15, 2012 (8.5 KB)
  3. 0.1.4 June 4, 2012 (8 KB)
  4. 0.1.3 April 13, 2012 (8.5 KB)
  5. 0.1.2 April 12, 2012 (8.5 KB)
Show all versions (14 total)