It is possible to configure this component to only enable parsers for the formats you wish to handle in your application. A set of common parsers are enabled by default but some will need to be enabled depending on the needs of your application.

The following example shows how to add the IODEF parser to the standard set of enabled parsers:

parser.addParser(parser.availableParsers.iodef)

Removing a parser from the set of enabled parsers is equally simple:

parser.removeParser(parser.availableParsers.activityStreams)

The full list of available parsers is available from parser.availableParsers.

As well as adding and removing individual parsers you are also able to define a list of parsers to add in a single call. The following example replaces the default set of parsers with the JSON and IODEF parsers.

The atom builder does not currently build the 'rights' element. If you require this please raise an issue or, better still, send me a pull request

Support for IODEF is limited to a minimal set of elements. The implementation currently supports the IODEF-Document element and all of its attributes along with the following sub-elements, including all of their attributes: