Skip to content

edas/onix3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onix3

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'onix3'

And then execute:

$ bundle

Or install it yourself as:

$ gem install onix3

Usage

Executable

onix3 comment onixfile.xml returns the onix file commented (code and lists descriptions as xml comments)

onix3 extract onixfile.xml 3325246 returns the onix file (with headers) leaving only the products that matche the identifier 332546 (this is a simple plain text match, which validates the product even if the identifier is found in ProductParts or RelatedProducts)

onix3 extract onixfile.xml 3325246 --comment does the same as above but commenting the product extracted.

onix3 count onixfile.xml returns ne number of products in the XML (counting the parts that shouldn't be sold independently)

Onix file could be plain text XML or a gzip archive file

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

ONIX v3 parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages