Sha256: 8bad04a47c84d1fc8fd97a0f709516b59279b4203c3eb01ceb69887183858dd8

Contents?: true

Size: 1.22 KB

Versions: 34

Compression:

Stored size: 1.22 KB

Contents

# RIXML - simple DSL for parse rixml.

[![Build Status](https://travis-ci.org/AlphaExchange/rixml.svg?branch=master)](https://travis-ci.org/AlphaExchange/rixml)

A simple RIXML parser for Ruby.

* Main page: https://github.com/AlphaExchange/rixml

## Usage

Basic usage:

```ruby
require 'rixml'

#parse from file
rixml = RIXML.parse_from_file('./test/fixtures/simple.xml')

#parse from string
rixml = RIXML.parse('<xml></xml>')

#parse from File
rixml = RIXML.new(File)
```

Now you should be able to get info about RIXML.

```ruby
# rixml.product_id
095ad669-9f01-421e-91a0-c6c9e78a3c9d

# rixml.status
revised

# rixml.publication_date
instance of Time

# rixml.authors

{
  name: 'Leonardo Siqueira',
  first_name: 'Leonardo',
  middle_name: 'Goularte',
  last_name: 'Siqueira',
  job_title: 'Awesome Job',
  email: 'leonardo@alpha-exchange.com'
}


# rixml.report_info

{
  title: 'Title',
  abstract: 'We initiate coverage with a Buy rating. We believe the stock is deeply undervalued...',
  file_name: 'sample.pdf',
  pages: 2
}

# rixml.context
{
  companies: companies: [{ isin: 'GOOG11234' }],
  sectors: [{ code: 45101010, focus: true }]
}

```


## Legal

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rixml-0.4.0 README.md
rixml-0.3.0 README.md
rixml-0.2.2 README.md
rixml-0.2.1 README.md
rixml-0.2.0 README.md
rixml-0.1.6 README.md
rixml-0.1.5 README.md
rixml-0.1.3 README.md
rixml-0.1.2 README.md
rixml-0.1.1 README.md
rixml-0.1.0 README.md
rixml-0.0.6 README.md
rixml-0.0.5 README.md
rixml-0.0.4 README.md