gextech / iptc-newsml

NewsML parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iptc-newsml

Build Status Apache License 2

A newsml parser for g2 and 1.2

Environment

"JDK"

Repository

This is hosted in bintray you need to add: https://dl.bintray.com/gextech/oss/ to your repositories and then the dependency:

gex.newsml:iptc-newsml:0.1.0

Usage

You can use the NewsMLTool class in order to parse NewsML v1.2 and G2 versions, it is simple enought just do it like this:

NewsML newsItem = NewsMLTool.parseV12Message(inputStream);

// Remember when using news ml 1.2 that the message
// will contain nitf, there is a util to convert your node to
// nitf

Nitf nitf = NewsMLTool.elementToNitf(element);

// or 

NewsMessage newsMessage = NewsMLTool.parseG2Message(inputStream);

GitHub, Factoids and Stats

"Forks" "Release" "Issues"

About

NewsML parser

License:Apache License 2.0


Languages

Language:Java 99.9%Language:Groovy 0.1%