Atomium is pure JavaScript parser for Node.js
If you want to try the module or contribute improving it, you are welcome.
var Atomium = require('./lib/Atomium'),feed;
feed = new Atomium(data); //data is actualy the Atom string we want to parse
//initialize and parse the atom feed
feed.init();
At this stage the module supports the following methods:
Use this method after every creation of "new Athomium(data)" in order to initialize the parser and parse the Atom data. Returns nothing.
returns an object* that has the ID of the Atom feed.
returns an object* that has the Title of the Atom feed.
returns an object* that has the Subtitle of the Atom feed.
returns an array** of objects that has the Link element of the Atom feed.
returns an object* that has the logo url of the Atom feed.
returns an object* that has the last time the feed was modified of the Atom feed.
returns an array** of objects that has the author information.
returns the feed generator object*.
returns an array** of objects that have the feed category.
returns an array** of objects that have the feed contributors.
returns icon image object* that provides visual identification for the feed.
returns object* that holds information about the rights held in and over the feed.
returns array** of all extension elements of the feed.
returns an array** of all feed entries.
Returned single object looks like this:
{ name : "element name",
attributes : {}
children [
{ name : "elem", attributes : {att:'val1'}, children [] },
{ name : "elem", attributes : {att:'val1'}, children [] },
{ name : "elem", attributes : {att:'val1'}, children [] }
]
}
The arrays have 0..n number of objects discribed before.
- Entry parser
- ….