RubyGems Navigation menu

xml-motor 0.0.7

A new short XML Parsing Algorithm implemented directly in >500 lines. An easy-to-use XML Parser without any Native Dependencies. [How To Use]: https://github.com/abhishekkr/rubygem_xml_motor/raw/master/README 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_ = XMLMotorEngine._splitter_ str tags_ = XMLMotorEngine._indexify_ nodes_ nodes_array = XMLMotorEngine.pre_processed_content nodes_, tags_, "_TAG_" nodes_array = XMLMotorEngine.pre_processed_content 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>a</a><b><a>ba</a></b>", "A", "i='1'" RETURNS: ["a"]

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 0.1.6 August 20, 2012 (8.5KB)
  2. 0.1.5 August 15, 2012 (8.5KB)
  3. 0.1.4 June 04, 2012 (8KB)
  4. 0.1.3 April 12, 2012 (8.5KB)
  5. 0.1.2 April 12, 2012 (8.5KB)
  6. 0.0.7 January 16, 2012 (6.5KB)
全てのバージョンを表示(全14件)

所有者:

作者:

  • abhishekkr

SHA 256チェックサム:

=

累計ダウンロード数 45,942

このバージョンのみ 2,980

このバージョンがリリースされたのは:

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: